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◼GdipDisposeImageImageEnView1.IECanvas.DrawImage( 'D:\alpha.png', 50, 50, -1, -1 );
ImageEnView1.Update();