Quote:
How do I improve my dither to 16 bit color 565 and reduce colors(16 colors)
What is the problem? don't works? bad quality result? too slow? ...
I don't use images libraries on a daily basis.
You dumped 8 blocks of code, and not a single comment explaining what is what.
You explain what result you want, but what is the starting point?
- My original image is ... size ... color encoded
- I do this operation to ... size ... color encoded
- I do this operation to ... size ... color encoded
- I get result as ... size ... color encoded
bitmapToProcess.Save(@"C:\image6.bmp");
Storing file on root of C: is a bad idea because windows is actively acting against it.
Use a subdirectory/folder instead.
Note that I have not seen any dithering operation in this code.
[Update]
My procedure would be:
- Read image to variable/object
- Extend color scheme to 24 bits
- Resize to 240*320
- dither to the 16 colors of 4 bits palette
- convert to 4 bits color scheme
- save new image