LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

compression in SaveBitmapToTIFFile

Solved!
Go to solution

Hello,

 

I am wondering if there are more details available concerning the compression algorithm available for this function. The help says:

 

TIF_COMPRESSION_RLE   1
TIF_COMPRESSION_JPEG   2
TIF_COMPRESSION_ZIP   3

 

However, the correspondence to the TIFF compression tag, see hereremains unclear to me, and help is welcome.

 

Thanks!

0 Kudos
Message 1 of 4
(2,887 Views)

May be I should elaborate a bit more on my question:

 

I have used a hex editor trying to find out the compression tag used for the different methods available in CVI but failed. This may well be my fault. What I want to know are the values of the TIFF compression tag for the three compression algorithms in CVI...

 

Thanks.

0 Kudos
Message 2 of 4
(2,870 Views)
Solution
Accepted by topic author Wolfgang

These are the correspondences:

 

TIF_COMPRESSION_RLE = PackBits (32773)

TIF_COMPRESSION_JPEG = JPEG (7)

TIF_COMPRESSION_ZIP = Deflate (32946)

 

These correspondences should have been included in the documentation. Sorry about that.

 

Luis

Message 3 of 4
(2,852 Views)

Thanks a lot, Luis!!

0 Kudos
Message 4 of 4
(2,845 Views)