Saving Tiff as 16 bpp ?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a bitmap and Im trying to save it as a 16bpp Tiff. I have the code
below to save it as 8bpp but can't find how to save as 16bit. Any help
appreciated.
myImageCodecInfo = GetEncoderInfo("image/tiff");

myEncoder = Encoder.ColorDepth;

myEncoderParameters = new EncoderParameters(1);

myEncoderParameter = new EncoderParameter(myEncoder, 24L);

myEncoderParameters.Param[0] = myEncoderParameter;

myPicture.Save(filename, myImageCodecInfo, myEncoderParameters);

Regards

Todd


.



Relevant Pages