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
 Converting to B&W CCITT Group3 TIFFs
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterMc

United Kingdom
1 Posts

Posted - Nov 04 2013 :  04:09:24  Show Profile  Reply
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?

fab

1310 Posts

Posted - Nov 27 2013 :  07:36:58  Show Profile  Reply
The code seems correct, so I think this is a bug of that ImageEn version.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: