I have a aspx page that outputs an image to the response.outputstream. This
works great. However, I want to be able to make the image it outputs a .gif
file. I can change the output type to "image/gif" and save the image by
doing:
myBitmap.Save(response.outputstream,ImageFormat.Gi f)
and this works, BUT it uses a horrible halftone palette to reduce the
colors. I have been trying for a day and a half to figure out any way to
reduce the colors into a .gif with no success. You can see the articles at:
http://support.microsoft.com/default...;EN-US;Q319591 and
http://support.microsoft.com/default...;EN-US;Q319061 which
actually work, but only in grayscale. Does anyone have any ideas of a way to
do this?
OR
I have also tried outputting the file as a PNG, which works, but because
(for whatever reason), the png always comes out darker than the original,
and I need the background color of my image to match the background color on
the site. SOOOooo... If someone can tell me how to make a background color
of a png transparent, programmatically, that might work too.
Thanks for any help!!!