There is basically two ways of doing this:
1. Save the image as a file and refer to that file in the img tag.
2. Refer to an aspx page in the img tag, which creates an image and returns
it to the browser as a binary stream.
This is a discussion on Creating Graphics to use in asp.net pages - DOTNET ; I need to create graphics and use them in my web pages dynamically. I see examples about GDI+ in windows forms applications. But i need to create graphics to use with asp.net pages. How can i do that, or are ...
I need to create graphics and use them in my web pages dynamically. I see
examples about GDI+ in windows forms applications. But i need to create
graphics to use with asp.net pages.
How can i do that, or are there any tutorial or article about that?
There is basically two ways of doing this:
1. Save the image as a file and refer to that file in the img tag.
2. Refer to an aspx page in the img tag, which creates an image and returns
it to the browser as a binary stream.
Im guessing a bit here on your requirements, but you can do the following
1. Reference System.Drawing in your ASP.NET app
2. Create a Bitmap
3. Obtain a graphics handle to the bitmap using Graphics.FromImage
4. Perform your drawing
5. Write the bitmap out in response to an image request, using gif, jpeg
or png, setting the appropriate image type. Your IMG tag will use an
aspx page as its reference.
James
http://www.crainiate.net
basulasz wrote:
> I need to create graphics and use them in my web pages dynamically. I see
> examples about GDI+ in windows forms applications. But i need to create
> graphics to use with asp.net pages.
>
> How can i do that, or are there any tutorial or article about that?