Debenu Quick PDF logo

SetImageResolution

Image handling

Version history

This function was introduced in Quick PDF Library version 7.22.

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 TDebenuPDFLibrary1511.SetImageResolution(Horizontal, Vertical, 
  Units: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::SetImageResolution(Horizontal As Long,
  Vertical As Long, Units As Long) As Long

DLL

int DPLSetImageResolution(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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport