Hello;
I am trying to optimize bitmaps that are comming form scanner. For example, I did this with success:
procedure TImgCollection.ImgNavigateAcquireBitmap(Sender: TObject;
ABitmap: TIEBitmap; DpiX, DpiY: Integer; var Handled: Boolean);
begin
ABitmap.Resample(1000, 1000, rfFastLinear, True, True);
end;
Is it possible to change the Bitmap DPI in this event?
For example I tried using:
procedure TImgCollection.ImgNavigateAcquireBitmap(Sender: TObject;
ABitmap: TIEBitmap; DpiX, DpiY: Integer; var Handled: Boolean);
begin
ABitmap.ParamsEnabled := True;
ABitmap.Params.Dpi := 72;
end;
... but it does not changing the file size.
Thank you!