Tiff Encoding

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

Moderator: Alex

Post Reply
blobfield
Posts: 1
Joined: Thu Oct 16, 2008 12:16 am

Tiff Encoding

Post by blobfield » 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.

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

Thanks,

Thai

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Tiff Encoding

Post by Alex » Thu Oct 16, 2008 8:17 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest