ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Compressing multi-page TIFFs
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

JonRobertson

USA
41 Posts

Posted - Sep 08 2011 :  10:44:46  Show Profile  Reply
Are all compression formats available for multi-page TIFFs?

Can ImageEn be used to convert a multi-page TIFF from one compression format to another compression format?

Thanks!

fab

1310 Posts

Posted - Sep 08 2011 :  11:35:27  Show Profile  Reply
ImageEn supports all standard TIFF compression formats, plus some non-standard like ZIP and Deflate.

Using TImageEnMView you can convert from a format to another (G4FAX in this case) writing:
ImageEnMView1.MIO.LoadFromFile('input.tiff');
ImageEnMView1.MIO.Params[0].TIFF_Compression := ioTIFF_G4FAX;
ImageEnMView1.MIO.Params[0].BitsPerSample := 1;
ImageEnMView1.MIO.Params[0].SamplesPerPixel := 1;
ImageEnMView1.MIO.DuplicateCompressionInfo();
ImageEnMView1.MIO.SaveToFile('output.tiff');

You can also use a TImageEnView (or a TImageEnIO + TIEBitmap) to process a page at the time, using SaveToFileTIFF for the first page and InsertToFileTIFF for the others.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: