Is there anyway to set the Bit Depth on a PNG?
I have bitmap I want to write out to a PNG file.
PNG files allow setting the Bit Depth (my Graphic editor Paint.Net) allows Auto-detect, 32-bit, 24-bit and 8-bit.
I only need 8-bit quality when writing this bitmap out.
I am currently writing it out using WriteToStream(Out, 100, "PNG")
I have tried different numbers other then 100 and they do nothing to the file size (only on JPEG)
Using the above the file size is 88kb
If I open the file in Paint.Net and then do a File Save As and choose the 8-Bit for Bit Depth the file size becomes 61kb
I know not much but I am going to send this file as an Email attachment and want to keep it as small as possible.
Thanks
BobVal
PS: Tried using BitmapExtended to createScaledBitmap and all the way down to 40% (file looks ugly when viewed) the savings are only about 7kb.
I have bitmap I want to write out to a PNG file.
PNG files allow setting the Bit Depth (my Graphic editor Paint.Net) allows Auto-detect, 32-bit, 24-bit and 8-bit.
I only need 8-bit quality when writing this bitmap out.
I am currently writing it out using WriteToStream(Out, 100, "PNG")
I have tried different numbers other then 100 and they do nothing to the file size (only on JPEG)
Using the above the file size is 88kb
If I open the file in Paint.Net and then do a File Save As and choose the 8-Bit for Bit Depth the file size becomes 61kb
I know not much but I am going to send this file as an Email attachment and want to keep it as small as possible.
Thanks
BobVal
PS: Tried using BitmapExtended to createScaledBitmap and all the way down to 40% (file looks ugly when viewed) the savings are only about 7kb.