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
 Converting to B&W CCITT Group3 TIFFs

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
PeterMc Posted - Nov 04 2013 : 04:09:24
Hi

I'm trying to convert some 24bit LZW multipage TIFF files into 1bit Group3Fax format TIFFs.

I'm using the following code in a loop to convert each page of the TIFF. If I set it to use the ioTIFF_G3FAX1D TIFF_Compression format, I get an image of the correct size, format and color depth but is totally white. If I set any other TIFF_Compression format (e.g. ioTIFF_LZW) I get the correct size, color depth and the image is present. Obviously the TIFF format is now incorrect.


	img	: TIEBitmap;
	tio	: TImageEnIO;
	proc	: TImageEnProc;

	proc.ConvertToBWThreshold(192);
	tio.Params.TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
	tio.Params.TIFF_Compression := ioTIFF_G3FAX1D;
	img.PixelFormat := ie1g;
	tio.Params.BitsPerSample := 1;
	tio.Params.SamplesPerPixel := 1;
	tio.ReplaceFileTIFF(TIFFName);


I am using Delphi5 with rather an old version of ImageEN (V2.2.8) as I let my update subscription lapse a while back.

Does anyone have any suggestions what I am doing wrong?
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Nov 27 2013 : 07:36:58
The code seems correct, so I think this is a bug of that ImageEn version.