Using Transparent Colors in Dynamic pictures. (GDI+)

Discussion in 'ASP .Net' started by Chris Tremblay, Aug 21, 2004.

  1. I am trying to create an image using GDI+ in VB.NET. I want to have the
    background be transparent, but when I do run the following:

    myGraphicsObject.clear(color.transparent)

    the resulting background color is black, not transparent. I am saving the
    image to the output stream as an "image/gif". Is there anything I should
    know about this, any reason that the result would be black?

    --

    Thanks,
    Chris Tremblay
    www.mtgfanatic.com, Inc.
    Chris Tremblay, Aug 21, 2004
    #1
    1. Advertising

  2. Chris Tremblay

    Jos Guest

    Chris Tremblay wrote:
    > I am trying to create an image using GDI+ in VB.NET. I want to have
    > the background be transparent, but when I do run the following:
    >
    > myGraphicsObject.clear(color.transparent)
    >
    > the resulting background color is black, not transparent. I am saving
    > the image to the output stream as an "image/gif". Is there anything I
    > should know about this, any reason that the result would be black?


    Transparent GIFs are not (yet) supported in GDI+.
    Neither are animated GIFs, for that matter.

    --

    Jos
    Jos, Aug 21, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Nathan Sokalski

    Making a transparent background using GDI+

    Nathan Sokalski, Jun 26, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    516
    Nathan Sokalski
    Jun 26, 2005
  2. John Fitzsimons

    Semi transparent pictures - How ?

    John Fitzsimons, Jul 23, 2004, in forum: HTML
    Replies:
    1
    Views:
    556
    Toby Inkster
    Jul 23, 2004
  3. Robin van de Water [synthesiSFactory]

    GDI+ is not properly initialized (internal GDI+ error).

    Robin van de Water [synthesiSFactory], Jan 10, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    1,338
    Robin van de Water [synthesiSFactory]
    Jan 10, 2007
  4. WT
    Replies:
    5
    Views:
    485
    Steven Cheng[MSFT]
    May 21, 2007
  5. Martin Raychev
    Replies:
    1
    Views:
    279
    Alvin Bruney [MVP]
    Mar 2, 2004
Loading...

Share This Page