SetAnnotQuadPoints

Annotations and hotspot links

Descrição

Define as coordenadas do quad especificado (área retangular) contido na anotação especificada Se o QuadNumber for maior que o número de quads que a anotação já tem, um novo quad será adicionado à anotação

Sintaxe

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);

Parâmetros

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.
X4A coordenada horizontal do canto superior esquerdo
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);