ImageEn, unit iegdiplus

TIECanvas.DrawImage

TIECanvas.DrawImage


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+

GDI+ Methods:
 GdipCreateBitmapFromFile
 GdipCreateBitmapFromStream
 GdipCreateBitmapFromHBITMAP
 GdipDrawImage
 GdipDrawImageRect
 GdipDisposeImage


Example

ImageEnView1.IECanvas.DrawImage( 'D:\alpha.png', 50, 50, -1, -1 );
ImageEnView1.Update();