Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[2569] Creating Images on the Fly with ASP.NET

Last post 10-22-2006 10:49 AM by fatti. 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 01-01-1999 12:00 AM

    [2569] Creating Images on the Fly with ASP.NET

    This thread is for discussions of Creating Images on the Fly with ASP.NET.

    • Post Points: 50
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 11-07-2002 5:55 AM In reply to

    • vyas
    • Not Ranked
    • Joined on 11-07-2002
    • New Member
    • Points 5

    Saving a predrwan Graphics object

    Dear Craig,

    I've an Windows Form custom control (an analog gauge control) to which I want to add the functionality of returning the drawn gauge image as bytes.  I wanted to create a Bitmap image from the Graphics object.  Unfortunately, I learnt that the Bitmap() constructor that took in a Graphics object doesn't actually create a representation of the image drawn on the Graphics object.  And I am stuck.

    I want to know a couple of things:

    1.

    I have a fully drawn image on a Graphics object.  I want to save this into a Bitmap object.  I don't have the liberty of creating a new Graphics object (the Graphics property of PaintEventArgs is read-only) and that might rule out the Graphics.FromImage(bitmap) approach.

    2.
    Also, I want to use this control on my ASP.Net code-behind class for generating an image of itself that would be streamed to the browser.

    Say, I would add a method, GetImageAsBytes(), that would return a byte array of the image of the control.
    I would write this image using

    Response.ContentType = "image/gif";
    Response.BinaryWrite(objGauge.GetImageAsBytes());
    Response.End();

    Would this approach work?  What's the Pros & Cons of using a Windows Forms control on an ASP page?  Would I be able to get a Graphic context at all (the code sure didn't throw up any errors).

    Ideas?

    Regards,

    Vyas


    • Post Points: 0
  • 01-02-2003 8:52 AM In reply to

    • lea
    • Not Ranked
    • Joined on 01-02-2003
    • New Member
    • Points 25

    Dynamic Images

    Hi I am trying to create an online design system for business cards. the user selects the template with the design already made from the database and it allows you to enter your title name address, company ect to the card, trouble i am having is how i would i go about doing this, am good with db and asp any ideas would be great, have had a look at .net system.drawing does anyone think this would solve my problem is there properties to draw the text that the user wants to change or how would i re-assemmble the card with the new details and inbed it all into the one image, looking for any ideas or websites that could help me thanx
    Lea
    • Post Points: 0
  • 02-07-2003 10:42 PM In reply to

    • fredo
    • Not Ranked
    • Joined on 02-07-2003
    • New Member
    • Points 5
    I'm not sure if this will help you, but I am doing some pretty complex client side drawing with SVG. It's XML & it's scriptable (javascript).  Images can be generated client & server side. If someone can do this, then for sure you can create business cards.  http://www.adobe.com/svg/demos/main.html
    • Post Points: 0
  • 05-29-2003 12:20 PM In reply to

    • stefaanv
    • Not Ranked
    • Joined on 05-29-2003
    • New Member
    • Points 5

    Great stuff

    Hi,

    I'm using similar code to create a floorplan on the fly with database input.
    I experience great difficulties to create a GIF file with non-ditchered colors and transparent background.
    Anybody knows how to tackle this one ?

    I found an article about re-coloring GIF images for transparent and non-ditchered colors at msdn, but this is for existing images and it's bloody complicated.  Anybody knows a simple solution when creating GIF files from scratch ?

    Stefaan
    • Post Points: 0
  • 06-20-2003 8:45 AM In reply to

    • farouk
    • Not Ranked
    • Joined on 06-20-2003
    • New Member
    • Points 5

    Business Card

    Hi
    Can yuo please tell me what technology or code you used for handling business card design system. I would really appreciate your help
    I are trying to do something very similar please
    Farouk
    • Post Points: 0
  • 03-10-2004 12:09 AM In reply to

    Quote:
    [1]Posted by lea on 2 Jan 2003 08:52 AM[/1]
    Hi I am trying to create an online design system for business cards. the user selects the template with the design already made from the database and it allows you to enter your title name address, company ect to the card, trouble i am having is how i would i go about doing this, am good with db and asp any ideas would be great, have had a look at .net system.drawing does anyone think this would solve my problem is there properties to draw the text that the user wants to change or how would i re-assemmble the card with the new details and inbed it all into the one image, looking for any ideas or websites that could help me thanx
    Lea


    Lea or Farouk,

    Did you find a solution for the online design?  I am looking for the same, willing to pay for advice.
    Thanks,
    Dan
    magnetmagic@yahoo.com
    • Post Points: 0
  • 03-10-2004 3:54 PM In reply to

    Also Intrested

    I am Also intrested in this idia!

    Mosly dealing with online desing, submited to my e-mail.

    I am sure it's dealing with Java Script or ASP i have some Links to a example of what i am looking for:


    http://www.logocrazy.com/businesscards/logocards/logocards3.asp
    http://209.209.50.113/magneticsigns/logosigns3.asp
    • Post Points: 0
  • 09-26-2004 3:34 AM In reply to

    Alternativly use ImageIN free image library

    You can skip this and just d/l ImageIN. Its an amazing free multi layer composition object which allows you to do many things... (http://www.cyberbob.com)
    • Post Points: 0
  • 10-22-2006 10:49 AM In reply to

    • fatti
    • Not Ranked
    • Joined on 10-22-2006
    • New Member
    • Points 5

    Re: [2569] Creating Images on the Fly with ASP.NET

    This has just solved a problem I have spent two weeks trying to solve. Even thought it was in VB and I needed it in C# I was still able to use it as converting it over was easy enough.

    Excellent work.





    • Post Points: 5
Page 1 of 1 (10 items)