SetImageResolution

Image handling

Description

Sets the horizontal and vertical resolution of the selected image as well as the resolution units. These values are used by the FitImage function.

Syntax

Delphi

function TPDFlib.SetImageResolution(Horizontal, Vertical, Units: Integer): Integer;

ActiveX

Function PDFlib::SetImageResolution(Horizontal As Long, Vertical As Long, Units As Long) As Long

DLL

int DLSetImageResolution(int InstanceID, int Horizontal, int Vertical, int Units);

Parameters

HorizontalThe new horizontal resolution of the image
VerticalThe new vertical resolution of the image
Units0 = Unknown 1 = No units, values specify the aspect ratio 2 = Dots per inch (DPI) 3 = Dots per centimetre (DPCM)

Return values

0No image was selected
1The resolution of the image was set successfully