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
 TIEMultiBitmap Dithering?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

e1ioan

Romania
4 Posts

Posted - Aug 10 2026 :  09:31:33  Show Profile  Reply
Hello,

I'm looking to apply dithering method to a TIEMultiBitmap, is there a way to do it?

Thank you!

procedure SomeProcedure(Atiff: TIEMultiBitmap);
var
  DpiX, DpiY: integer;
begin
  for var i := 0 to Atiff.Count - 1 do
  begin
    Atiff.Params[i].TIFF_Compression := ioTIFF_G3FAX1D;
    Atiff.Params[i].BitsPerSample := 1;
    Atiff.Params[i].SamplesPerPixel := 1;

    if Atiff.ImageWidth[0] <> FAX_WIDTH then
      Atiff.ResampleAll(FAX_WIDTH, Atiff.ImageHeight[0], TResampleFilter.rfProjectBW);

    // make sure the DPI is set correctly
    CalculateFaxDPI(Atiff.ImageWidth[i], Atiff.ImageHeight[i], DpiX, DpiY);
    Atiff.Params[i].DpiX := DpiX;
    Atiff.Params[i].DpiY := DpiY;
  end;
  Atiff.DuplicateCompressionInfo;
end;

xequte

39510 Posts

Posted - Aug 11 2026 :  01:57:45  Show Profile  Reply
Hi

Do you mean converting to 1bit and dithering?

http://www.imageen.com/help/TImageEnProc.ConvertTo.html

The easiest way is to use the Proc helper (iexHelperFunctions unit):

http://www.imageen.com/help/TIEMultiBitmapHelper.Proc.html

e.g.
for i := 0 to multiBmp.Count - 1 do
  multiBmp.Proc[i].ConvertTo( ie1g, ieptFixedHalftone256, iedtOrdered8x8 );


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: