i am writing am application manipulating images.
I use ImageCodecInfo & EncoderParameters to save the images, exactly as in the MSDN example - check the link:
The problem is that except for the tiff & gif encoders, i can't make the Encoder.ColorDepth parameter work. The image is saved in it's native color depth, nevermind the parameter i give. It holds for bmp and jpeg according to my tests.
If you like, try to compile the example from the link(it's fairly fast&easy) and try to change the format to jpeg or bmp and try to give other color depths, to see what happens - the image is saved in the color depth it has and not the one given as paramether.
For tiff images though, as is the original example, the image is saved in the correct color depth provided as a paramether.
If you have had experience with that and knows something about how i can save a bmp or jpeg in different color depth, i will appreciate your help or comment.