GDI+ in ASP page?

Blake81

Well-known member
Joined
Feb 23, 2006
Messages
304
Location
Georgia, USA
Programming Experience
1-3
I want to work on making my website look better, but I haven't used GDI+ with ASP pages. Can this be done? I tried it, but I couldn't find some things that I was looking for. For instance, if I wanted to create a background for the page, I'd want to start with a rectangle, but I couldn't use Me.Width and Me.Height. How can I accomplish this? Thanks.
 
The ASP.Net page is rendered (rendered Html !) at client, only there is the final page width and height determined. With client-side Javascript these properties can be discovered.

GDI+ can be used in server code and for example saved as an image that the page displays, or used as background, also with the different background image styles like position and repeat. ASP.Net page can also be an image by setting Response.ContentType = "image/jpeg" and saving image data to the response OutputStream. A page image tag pointing to this "image page" will display the generated image.
 
Back
Top