Any easy way? I am trying to convert the PixelFormat from 24 bits image to 16 bits RGB555 with dithering (for a portable device). I tested already a lot of approaches:
- AForge.NET
- FreeImage
- http://www.codeproject.com/Articles/66341/A-Simple-Yet-Quite-Powerful-Palette-Quantizer-in-C
They all work poorly. http://msdn.microsoft.com/en-us/library/windows/desktop/ms536306(v=vs.85).aspx
I found a GDI+ wrapper, but this function is missing.
Thanks!
You can convert the image by using Bitmap class in the constructor pass the parameters for the conversion format and it will render the image with the PixelFormat you have mentioned.
Some code:
Suggestions
If you have some simple requirements you would not probably need AForge.NET (An excellent library for image processing) and you may go with a simple solution,but that's your decision to make.
Links