[Mono-winforms-list] Are 16-bit and 24-bit pixelformatssupportedby libgdiplus?

Jonathan Gilbert 2a5gjx302 at sneakemail.com
Thu Nov 10 08:39:40 EST 2005


At 12:06 PM 10/11/2005 +0100, Kornel wrote:
>Using Format32bppArgb internally in libgdiplus can result in better
>performance, but I think conversion should be done when loading and saving
>bitmaps but Bitmap.PixelFormat should return the original pixel format for
>compatibility.

For indexed pixel formats, this is not an option, because it does not
preserve the palette indices. This is why I added direct support for those
pixel formats. This road might work for 15- and 16-bit images, though, and
would have the added effect that people get an extra couple bits of
accuracy on every channel for any sequence of drawing operations they want
to do :-) Even if we subsequently quantize down to 15- or 16-bit data
before saving, the results should be marginally better (less quantization
error).

Jonathan Gilbert


More information about the Mono-winforms-list mailing list