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 _______________________________________________ Mono-winforms-list maillist - Mono-winforms-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-winforms-list