Write image as Indexed PNG C#
-
Hi, I have an instance of Bitmap that I want to save as an PNG with Indexed colour mode. How can I do this in .NET? Thanks, Steve
Don't know about indexed colour as I've never had the necessity to do it before and google might help ;) but this:
Bitmap bmp = new Bitmap(x,y);
bmp.Save("c:\\bmp", System.Drawing.Imaging.ImageFormat.Png); -
Don't know about indexed colour as I've never had the necessity to do it before and google might help ;) but this:
Bitmap bmp = new Bitmap(x,y);
bmp.Save("c:\\bmp", System.Drawing.Imaging.ImageFormat.Png); -
Oh ok. I didn't know :-D Just tryin' to help :)
-
Hi, I have an instance of Bitmap that I want to save as an PNG with Indexed colour mode. How can I do this in .NET? Thanks, Steve
Hi, I don't think .NET supports indexed colors for PNG. This MSDN page[^] says PNG needs 0 bytes for parameters, so there is nothing to choose from. :)
Luc Pattyn [Forum Guidelines] [My Articles]
Avoiding unwanted divs (as in "articles needing approval") with the help of this FireFox add-in
-
Hi, I have an instance of Bitmap that I want to save as an PNG with Indexed colour mode. How can I do this in .NET? Thanks, Steve