ImageEn, unit imageenproc

TImageEnProc.AttachedIEBitmap

TImageEnProc.AttachedIEBitmap

Declaration

property AttachedIEBitmap: TIEBitmap;

Description

Attach a TImageEnProc to a TIEBitmap to perform image modification and analysis functions on an image.

Note: Using TIEBitmap instead of TBitmap allows TImageEnProc to be thread safe and handle large images.

Example

// Load an image with a TIEBitmap, make it negative then save it
bmp := TIEBitmap.Create();
proc := TImageEnProc.Create( nil );
proc.AttachedIEBitmap := bmp;
bmp.LoadFromFile('D:\animage.jpeg');
proc.Negative();
bmp.SaveToFile('D:\output.jpeg');
proc.Free();
bmp.Free();