Creating Graphics to use in asp.net pages - DOTNET

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 ...

+ Reply to Thread
Results 1 to 3 of 3

Creating Graphics to use in asp.net pages

  1. Default Creating Graphics to use in asp.net pages

    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?

  2. Default RE: Creating Graphics to use in asp.net pages

    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.

  3. Default Re: Creating Graphics to use in asp.net pages

    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?


+ Reply to Thread

Similar Threads

  1. Pages and graphics won't cache in the browser
    By Application Development in forum Sharepoint
    Replies: 6
    Last Post: 11-02-2007, 08:24 AM
  2. Replies: 0
    Last Post: 07-21-2007, 11:06 AM
  3. graphics displaced when deleting or resorting pages
    By Application Development in forum Adobe Pagemaker
    Replies: 1
    Last Post: 01-22-2007, 08:58 AM
  4. Printing graphics/text that span multiple pages
    By Application Development in forum DOTNET
    Replies: 7
    Last Post: 11-21-2006, 05:46 AM