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?