ImageEn, unit iexHelperFunctions |
|
TBitmapHelper.FreeImageEnObjects
Declaration
procedure FreeImageEnObjects();
Description
Frees any associated
IO or
Proc objects that were created for the TBitmap.
This method is not required, but will improve memory handling.
Note: You must add the iexHelperFunctions unit to your uses clause
var
bmp: TBitmap;
begin
// Load an image, quality scale it by 50%, and save
bmp := TBitmap.Create();
try
bmp.IO.LoadFromFile( 'D:\im2.jpg' );
bmp.Proc.Resample( 0.5, rfLanczos3 );
bmp.IO.Params.JPEG_Quality := 90;
bmp.IO.SaveToFile( 'D:\out.jpg' );
finally
bmp.FreeImageEnObjects(); // Not required but improves memory handling
bmp.Free();
end;
end;
See Also
◼IO◼Proc◼FreeImageEnObjects