Converting a bmp to a tiff image
Hello all,
I am attempting to create a bitmap on the fly of an email that I have just read and attempting to save it as a tiff image.
The following code allows me to save the newly created bitmap with LZW compression and its readable by Microsoft Office Document Image writer.
oEncoderParameters = New Imaging.EncoderParameters(1)
oEncoder = Imaging.Encoder.Compression
oParameter = New Imaging.EncoderParameter(oEncoder, Imaging.EncoderValue.CompressionLZW)
oEncoderParameters.Param(0) = oParameter
ocodecinfo = GetEncoderinfo("image/tiff")
bmpImage.Save(sFilePath, ocodecinfo, oEncoderParameters)
If I change the compression to CompressionCCITT4, I am able to create the tif file but am unable to view the file through Microsoft Office Image Document Writer.
Any help is appreciated.
Eric
|