ImageEn, unit imageenproc |
|
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.
// Load an image with a TIEBitmap, make it negative then save it
iebmp := TIEBitmap.Create;
proc := TImageEnProc.create(nil);
proc.AttachedIEBitmap := iebmp;
iebmp.LoadFromFile('D:\animage.jpeg');
proc.Negative();
iebmp.SaveToFile('D:\output.jpeg');
proc.Free;
iebmp.Free;