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
 Tiff compression
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

ChrmnMAO

USA
19 Posts

Posted - Nov 17 2014 :  10:00:56  Show Profile  Reply
Earlier this year we migrated from another imaging package to Imageen. Images acquired are stored in a Sql Server datbase as tiff files.

It seems that the images stored using imageen are markedly larger than previously. Are there ways to implement tiff compression so that new images are compressed? How would I detect and display non-compressed (older) images - would I detect for compression and set a property in the imageenview and imageenmview components?

Thanks in advance for any guidance you can offer!

Martin

xequte

39138 Posts

Posted - Nov 17 2014 :  12:15:32  Show Profile  Reply
Hi Martin

Yes, you can detect the TIFF compression that is being used via the Params properties of the IO object used by a TImageEnView, e.g.

ImageEnView1.IO.Params.TIFF_Compression

Or for a TImageEnMView:

ImageEnMView1.MIO.Params[ ImageEnMView1.SelectedImage ].TIFF_Compression


You can read/write the various TIFF properties as required:

http://www.imageen.com/help/TIOParamsVals.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

ChrmnMAO

USA
19 Posts

Posted - Jan 23 2015 :  14:32:37  Show Profile  Reply
Thanks Nigel.

One followup question. Can I use the

ImageEnView1.IO.Params.TIFF_Compression

property to set the compression of an uncompressed TIFF file that I have opened, and which I want to save as compressed with LZW compression? In other words, does

ImageEnView1.IO.Params.TIFF_Compression

change the compression of the file in memory?

Thanks,

Martin
Go to Top of Page

xequte

39138 Posts

Posted - Jan 25 2015 :  14:58:39  Show Profile  Reply
Hi Martin

The TIFF_compression property has no effect until you save the file to a compressible TIFF format.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

ChrmnMAO

USA
19 Posts

Posted - Jan 27 2015 :  11:10:47  Show Profile  Reply
Hi Nigel,

Does saving the file to stream using SaveToStreamTIFF also update the TIFF compression, or is it only SaveToFileTIFF that does that?

Thanks,

Martin
Go to Top of Page

xequte

39138 Posts

Posted - Jan 27 2015 :  13:03:37  Show Profile  Reply
Hi Martin

SaveToStreamTIFF does too. In fact SaveToFileTIFF just calls SaveToStreamTIFF internally.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

ChrmnMAO

USA
19 Posts

Posted - Jan 28 2015 :  10:56:07  Show Profile  Reply
Thanks Nigel, I appreciate your help.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: