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
 Color Images to BW and ioTIFF_G4FAX
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

lzehnder

France
14 Posts

Posted - Dec 26 2013 :  03:40:19  Show Profile  Reply
Hello,

for a Multifiles Tiff in Color, i Try to save in BW with the compression ioTIFF_G4FAX.

The BW conversion is ok but in the file the compression is none.

ImageEnMView1.MIO.LoadFromFileAuto(FFileName);

for iCount := 0 to ImageEnMView1.ImageCount -1 do
begin
ImageEnMView1.SelectedImage := iCount;
ImageEnMView1.Proc.ConvertToBWThreshold(128);
ImageEnMView1.MIO.Params[iCount].TIFF_Compression := ioTIFF_G4FAX;
ImageEnMView1.MIO.Params[iCount].TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
ImageEnMView1.MIO.Params[iCount].BitsPerSample := 1;
ImageEnMView1.MIO.Params[iCount].SamplesPerPixel := 1;
end;
ImageEnMView1.MIO.SaveToFile(SaveImageEnDialog1.FileName);

Thank You.

stwizard

USA
46 Posts

Posted - Jan 13 2014 :  08:16:45  Show Profile  Reply
Since no one else has answered try this:

ImageEnMView1.MIO.LoadFromFileAuto(FFileName);

for iCount := 0 to ImageEnMView1.ImageCount -1 do
begin
ImageEnMView1.SelectedImage := iCount;
ImageEnMView1.Proc.ConvertToBWThreshold(128);
ImageEnMView1.MIO.Params[iCount].TIFF_PhotometInterpret := ioTIFF_BLACKISZERO;
end;

ImageEnMView1.MIO.Params[0].TIFF_Compression := ioTIFF_G4FAX;
ImageEnMView1.MIO.Params[0].BitsPerSample := 1;
ImageEnMView1.MIO.Params[0].SamplesPerPixel := 1;
ImageEnMView1.MIO.SaveToFile(SaveImageEnDialog1.FileName);

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: