ImageEn, unit imageenproc |
|
TImageEnProc.AttachedBitmap
Declaration
property AttachedBitmap: TBitmap;
Description
Attach a TImageEnProc to a TBitmap to perform image modification and analysis functions on an image.
Note:
◼This property is mutually exclusive with
AttachedTImage and
AttachedImageEn.
◼If the bitmap.PixelFormat is pfDevice, it will be converted to pf24bit
// Prompt the user to perform image modification effects on an image in a TImage
ImageEnView1.Proc.AttachedBitmap := Image1.Picture.Bitmap;
ImageEnView1.Proc.DoPreviews([peAll]);
// Rotate a BMP file 270 deg. clockwise
bmp := TBitmap.Create;
bmp.LoadFromFile('D:\image.bmp');
proc.AttachedBitmap := bmp;
proc.Rotate( 90 );
proc.Free;
bmp.SaveToFile('D:\output.bmp');
bmp.Free;