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
| Left | Horizontal co-ordinate of the left edge of the image |
|---|---|
| Top | Vertical co-ordinate of the top edge of the image |
| Width | Width of the image |
| Height | Height of the image |
Return values
| 0 | An image has not been selected |
|---|---|
| 1 | The 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