This is useful if we need to generate images on the fly.For example image verification at the registration time.
protected void Page_Load(object sender, EventArgs e) { Bitmap bitmap = new Bitmap(100, 100); Graphics g = Graphics.FromImage(bitmap); g.DrawString(Request.QueryString["text"] == null ? "wrong input" : Request.QueryString["text"], SystemFonts.DefaultFont, Brushes.Red, new PointF(0, 0)); bitmap.Save(Response.OutputStream, ImageFormat.Jpeg); }
|
No responses found. Be the first to respond and make money from revenue sharing program.
|