AddMeasureLineAnnotation
注釈とホットスポットリンク、測定と座標単位
説明
/Subtype /Line 注釈を、/IT /LineDimension 付きで追加します。リーダー線(/LL、/LLE)と /Subtype /RL の /Measure 測定辞書、そして自動合成された normal 外観ストリーム(/AP /N)を伴います
構文
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 LongDLL
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);パラメータ
| X1 | 始点の水平座標 |
|---|---|
| Y1 | 始点の垂直座標 |
| X2 | 終点の水平座標 |
| Y2 | 終点の垂直座標 |
| LeaderLength | リーダー線の直交オフセット |
| ScaleRatio | PDF ユーザー空間 1 単位あたりのワールド単位数 |
| UnitLabel | 測定単位ラベル(例 mm、m) |
| CustomText | 計算された距離ラベルを差し替える、省略可能なカスタムキャプションテキスト |
| Red | 赤の色成分(0.0〜1.0) |
| Green | 緑の色成分(0.0〜1.0) |
| Blue | 青の色成分(0.0〜1.0) |
戻り値
測定線注釈を選択ページに追加できたら 1、失敗時は 0