VintaSoft Imaging .NET SDK and Plug-ins Discussions

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Tiff Encoding



Tiff Encoding

Post by blobfield »

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.
                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);
2. Is there a way to maintain the tiff tags when saving the file after processing it?

Thanks,

Thai


Re: Tiff Encoding

Post by Alex »

Hello,

-> 1. I can't get the image to save when I use the TiffEncoder parm to the save method.

Why do you use the Save method twice? Save method initializes saving process in a separate thread so you need to wait while the first saving process will be finished and only then start next saving process. You can execute two Save methods simultaneously only for different collections. Please see description of the Save method in documentation.

-> 2. Is there a way to maintain the tiff tags when saving the file after processing it?

Version 2.0 does not allow to do this, we will add opportunity to add, edit and delete tags of TIFF file in next version.

Best regards, Alexander


Page 1 from 1: 1