Declaration
function DrawImage(Filename: string; x: Double; y: Double; width: Single; height: Single): Boolean; overload;
function DrawImage(Stream: TStream; x: Double; y: Double; width: Single; height: Single): Boolean; overload;
function DrawImage(ABitmap: TBitmap; x: Double; y: Double; width: Single; height: Single): Boolean; overload;
Description
Draw an image to the canvas using GDI+.
Note:
◼Image must be of a format supported by GDI+
◼Alpha channel is not supported
GDI+ Methods:
◼GdipCreateBitmapFromFile
◼GdipCreateBitmapFromStream
◼GdipCreateBitmapFromHBITMAP
◼GdipDrawImage
◼GdipDrawImageRect
◼GdipDisposeImage
Example
ImageEnView1.IECanvas.DrawImage( 'D:\alpha.png', 50, 50, -1, -1 );
ImageEnView1.Update();