AddMeasureLineAnnotation

Annotaties en hotspotkoppelingen, meet- en coördinaateenheden

Beschrijving

Voegt een /Subtype /Line-annotatie toe met /IT /LineDimension, leader lines (/LL, /LLE), een /Subtype /RL /Measure-dictionary en een automatisch gesynthetiseerde normal appearance stream (/AP /N)

Syntaxis

Delphi

Function AddMeasureLineAnnotation(X1, Y1, X2, Y2, LeaderLength, ScaleRatio: Double; Const UnitLabel, CustomText: WideString; Red, Green, Blue: Double): Integer;

ActiveX

Function PDFlib::AddMeasureLineAnnotation(X1 As Double, Y1 As Double, X2 As Double, Y2 As Double, LeaderLength As Double, ScaleRatio As Double, UnitLabel As String, CustomText As String, Red As Double, Green As Double, Blue As Double) As Long

DLL

int DLAddMeasureLineAnnotation(int InstanceID, double X1, double Y1, double X2, double Y2, double LeaderLength, double ScaleRatio, const wchar_t* UnitLabel, const wchar_t* CustomText, double Red, double Green, double Blue);
int DLAddMeasureLineAnnotationA(int InstanceID, double X1, double Y1, double X2, double Y2, double LeaderLength, double ScaleRatio, const char* UnitLabel, const char* CustomText, double Red, double Green, double Blue);

Parameters

X1Start horizontale coördinaat
Y1Start verticale coördinaat
X2Eind horizontale coördinaat
Y2Eind verticale coördinaat
LeaderLengthLoodrechte leader line-offset
ScaleRatioWorld units per PDF user-space-unit
UnitLabelMaateenheid-label (bijvoorbeeld mm of m)
CustomTextOptionele eigen bijschrifttekst die het berekende afstandslabel overschrijft
RedRode kleurcomponent (0.0 t/m 1.0)
GreenGroene kleurcomponent (0.0 t/m 1.0)
BlueBlauwe kleurcomponent (0.0 t/m 1.0)

Retourwaarden

1 wanneer de meetlijnannotatie aan de geselecteerde pagina is toegevoegd, of 0 bij falen

Zie ook

AddLineAnnotation, AddPageMeasureViewport