ImageEn, unit imageenio

TImageEnIO.MergeMetaFile

TImageEnIO.MergeMetaFile


Declaration

procedure MergeMetafile(const FileName: WideString; x, y, Width, Height: Integer);


Description

Loads a metafile and draws it at the x, y position using sizes of Width and Height.

If Width or Height is -1 the other is auto-calculated to maintain the aspect ratio.


Example

ImageEnView1.IO.LoadFromFile('C:\backgroundimage.jpg');
ImageEnView1.IO.MergeMetaFile('C:\overimage.wmf', 100, 100, 120, -1);