Tiff Encoding
Posted: Thu Oct 16, 2008 12:23 am
Some questions about the product and code.
1. I can't get the image to save when I use the TiffEncoder parm to the save method.
2. Is there a way to maintain the tiff tags when saving the file after processing it?
Thanks,
Thai
1. I can't get the image to save when I use the TiffEncoder parm to the save method.
Code: Select all
ImageCollection images = new ImageCollection();
string sConvertedFile = @txtbxWorkingfolder.Text + @"\converted\" + sTifFileName;
images.Add(sFullSavedTifFile);
images[0].ConvertToGray();
images.ImageSaved += new ImageSavedEventHandler(images_ImageSaved);
images.Save(sConvertedFile);
Vintasoft.Imaging.Encoders.TiffEncoder tifEncoder = new Vintasoft.Imaging.Encoders.TiffEncoder(true, Vintasoft.Imaging.Tiff.TiffCompression.CCITGroup4);
images.Save(sConvertedFile, tifEncoder);
Thanks,
Thai