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
 Compress color images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

izaque

Brazil
95 Posts

Posted - Feb 24 2012 :  12:54:04  Show Profile  Reply
Hi, how can I compress color images as TIFF for example, that when I scan?

fab

1310 Posts

Posted - Feb 24 2012 :  14:08:30  Show Profile  Reply
Hi,
you have to specify a compression method using TIFF_Compression property.
For color images you can select ioTIFF_LZW, ioTIFF_JPEG and ioTIFF_PACKBITS (and other two non standard ways).
Example (a single page in TImageEnView):

ImageEnView.IO.Params.TIFF_Compression := ioTIFF_JPEG;
ImageEnView.IO.Params.SamplesPerPixel := 3;
ImageEnView.IO.Params.BitsPerSample := 8;
ImageEnView.IO.SaveToFile('output.tiff');
Go to Top of Page

izaque

Brazil
95 Posts

Posted - Feb 27 2012 :  06:27:54  Show Profile  Reply
Ok, Thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: