DrawImage

Image handling, Page layout

Description

Draw the selected image on the page.

Syntax

Delphi

Function TPDFlib.DrawImage(Left, Top, Width, Height: Double): Integer;

ActiveX

Function PDFlib::DrawImage(Left As Double, Top As Double, Width As Double, Height As Double) As Long

DLL

int DLDrawImage(int InstanceID, double Left, double Top, double Width, double Height);

Parameters

LeftHorizontal co-ordinate of the left edge of the image
TopVertical co-ordinate of the top edge of the image
WidthWidth of the image
HeightHeight of the image

Return values

0An image has not been selected
1The image was drawn successfully

Remarks

Under PDF/A or PDF/X the image's colour space passes the same gates as fill colours: a DeviceRGB image is refused under PDF/X-1a and under PDF/X-3 or PDF/X-4 without an RGB output intent, a DeviceCMYK image under PDF/A without a CMYK output intent, and an ICC-based image under PDF/X-1a. A refused image is not drawn, the method returns 0 and LastErrorCode is 601