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 LongDLL
int DLSetImageResolution(int InstanceID, int Horizontal, int Vertical, int Units);Parameters
| Horizontal | The new horizontal resolution of the image |
|---|---|
| Vertical | The new vertical resolution of the image |
| Units | 0 = Unknown 1 = No units, values specify the aspect ratio 2 = Dots per inch (DPI) 3 = Dots per centimetre (DPCM) |
Return values
| 0 | No image was selected |
|---|---|
| 1 | The resolution of the image was set successfully |