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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Tiff GrayScale

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
izaque Posted - May 28 2012 : 12:31:22
In ImageEn manual says that "TIOTiff_Compression" ioTIFF_G4FAX Bilevel Group 4 CCITT compression, bidimensional. "Only black / white images," in the alpha channel.

What is the compression method for grayscale TIFF? ioTIFF_G4FAX?
4   L A T E S T    R E P L I E S    (Newest First)
izaque Posted - May 29 2012 : 05:25:52
Thank you Fabrizio, now is working fine!
fab Posted - May 28 2012 : 22:28:23
For a bug on current version you should set SamplesPerPixel=3. Setting ioJPEG_GRAYLEV anyway ignore SamplesPerPixel (assuming 1).
izaque Posted - May 28 2012 : 16:22:34
I used the following code for compressing grayscale:

ImgMDigitalizar.MIO.Params [i]. BitsPerSample: = 8;
ImgMDigitalizar.MIO.Params [i]. Samplesperpixel: = 1;

ImgMDigitalizar.MIO.Params [i]. TIFF_Compression: = ioTIFF_JPEG;
ImgMDigitalizar.MIO.Params [i]. TIFF_JPEGColorSpace: = ioJPEG_GRAYLEV;

However the image is not compressed. Please, what's wrong?
fab Posted - May 28 2012 : 14:47:08
Gray scale is supported only with:
- ioTIFF_UNCOMPRESSED
- ioTIFF_LZW
- ioTIFF_JPEG
- ioTIFF_PACKBITS
- ioTIFF_ZIP
- ioTIFF_DEFLATE

As described in revision 6.0 of TIFF specification (except for ZIP and DEFLATE).