Live Chat Icon For mobile
Live Chat Icon

How to display image on a browser without using the image tag

Platform: ASP.NET| Category: GDI+


Dim objBitmap As New Bitmap(500, 500)
Dim objGraphics As Graphics = Graphics.FromImage(objBitmap)
objGraphics.FillRectangle(New SolidBrush(Color.Purple), 0, 0, 400, 10)
objBitmap.Save(Response.OutputStream, ImageFormat.Jpeg)


Bitmap objBitmap = new Bitmap(500, 500);
Graphics objGraphics = Graphics.FromImage(objBitmap); 
objGraphics.FillRectangle(new SolidBrush(Color.Purple  ), 0, 0, 400, 10);
objBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.