[Mono-list] PixelFormat.Format16bppRgb565
Wyborski Marek
Marek.Wyborski at escad.de
Fri Aug 10 12:10:58 EDT 2007
Hello!
I have got a problem with Bitmaps and the PixelFormat. I want to save a
Bitmap with PixelFormat.Format16bppRgb565. If I run Mono on Windows it
works, but under Linux it is saving the Bitmap with 32Bit Colors. Why???
Example:
Bitmap bmp = new Bitmap(300, 300, PixelFormat.Format16bppRgb565);
bmp.Save("bmp.bmp", ImageFormat.Bmp);
With Mono on Windows the File is 180066 bytes large, but on Linux it is
360054. So what is the difference in PixelFormat Handling on the
different platforms?
I would really need the functionality, if there is another way to save
the bitmap with 16 Bit Colors please let me know. Saving it as 32Bit and
then converting each Color to 16Bit seems to be expensive.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070810/add4046d/attachment.html
More information about the Mono-list
mailing list