Hi,
I already could build TIFF G4 files out of JPEG files. But somehow my code doesn't work in this particular case. I have an RGB TIFF file and want to convert it to BW. But whatever I do, it seems there is no difference between input and output file.
I tried two approaches:
Tiff.IO.LoadFromFile(inputfile, ioTIFF);
Tiff.IO.Params.TIFF_Compression := TIOTIFFCompression.ioTIFF_G4FAX;
Tiff.IO.Params.TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
Tiff.IO.Params.BitsPerSample := 1;
Tiff.IO.Params.SamplesPerPixel := 1;
Tiff.IO.Params.ImageIndex := i-1;
Tiff.IO.SaveToFileTIFF(outputfile)
Tiff.IO.LoadFromFile(inputfile, ioTIFF);
Tiff.Proc.ConvertToBW_FloydSteinberg;
Tiff.IO.SaveToFileTIFF(outputfile)
Is there anything wrong with my code? Could it be the original TIFF file which causes problems?
Regards,
Jan