SetAnnotQuadPoints

Annotations and hotspot links

Description

Sets the co-ordinates of the specified quad (rectangular area) contained within the specified annotation. If the QuadNumber is higher than the number of quads that the annotation already has then a new quad will be added to the annotation.

Syntax

Delphi

function TPDFlib.SetAnnotQuadPoints(Index, QuadNumber: Integer; X1, Y1, X2, Y2, X3, Y3, X4, Y4: Double): Integer;

ActiveX

Function PDFlib::SetAnnotQuadPoints(Index As Long, QuadNumber As Long, X1 As Double, Y1 As Double, X2 As Double, Y2 As Double, X3 As Double, Y3 As Double, X4 As Double, Y4 As Double) As Long

DLL

int DLSetAnnotQuadPoints(int InstanceID, int Index, int QuadNumber, double X1, double Y1, double X2, double Y2, double X3, double Y3, double X4, double Y4);

Parameters

IndexThe index of the annotation. The first annotation on the page has an index of 1.
QuadNumberThe index of the annotation's quad to set. The first quad has a QuadNumber of 1. If QuadNumber is greater than the number of existing quads then a new quad will be added to the annotation.
X1The horizontal co-ordinate of the bottom-left corner.
Y1The vertical co-ordinate of the bottom-left corner.
X2The horizontal co-ordinate of the bottom-right corner.
Y2The vertical co-ordinate of the bottom-right corner. The horizontal co-ordinate of the top-right corner.
X3
Y3The vertical co-ordinate of the top-right corner.
X4The horizontal co-ordinate of the top-left corner.
Y4The vertical co-ordinate of the top-left corner.

Return values

0The QuadNumber parameter was less than 1.
1The quad was changed or a new quad was added. double Y3, double X4, double Y4);