AddMeasureLineAnnotation

Anmerkungen und Hotspot-Links, Mess- und Koordinateneinheiten

Beschreibung

Fügt eine /Subtype /Line-Anmerkung mit /IT /LineDimension, Bezugslinien (/LL, /LLE), einem /Subtype /RL-/Measure-Dictionary und einem automatisch synthetisierten Normal-Appearance-Stream (/AP /N) hinzu

Syntax

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

Parameter

X1Horizontale Startkoordinate
Y1Vertikale Startkoordinate
X2Horizontale Endkoordinate
Y2Vertikale Endkoordinate
LeaderLengthSenkrechter Versatz der Bezugslinie
ScaleRatioWelteinheiten pro PDF-User-Space-Einheit
UnitLabelBeschriftung der Messeinheit (zum Beispiel mm oder m)
CustomTextOptionaler eigener Beschriftungstext, der das berechnete Distanzlabel ersetzt
RedRot-Farbanteil (0.0 bis 1.0)
GreenGrün-Farbanteil (0.0 bis 1.0)
BlueBlau-Farbanteil (0.0 bis 1.0)

Rückgabewerte

1, wenn die Messlinien-Anmerkung der gewählten Seite hinzugefügt wurde, sonst 0

Siehe auch

AddLineAnnotation, AddPageMeasureViewport