AddMeasureLineAnnotation
註解與熱點連結、測量和座標單位
描述
加入帶 /Subtype /Line、引線(/IT /LineDimension、/LL)、/LLE /Subtype /RL 字典與自動合成正常外觀串流(/Measure)的 /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 使用者空間單位對應的世界單位 |
| UnitLabel | 量測單位標籤(例如 mm 或 m) |
| CustomText | 選配的自訂標題文字,覆寫算出的距離標籤 |
| Red | 紅色分量(0.0 到 1.0) |
| Green | 綠色分量(0.0 到 1.0) |
| Blue | 藍色分量(0.0 到 1.0) |
傳回值
量測線註解成功加入所選頁面時為 1,失敗時為 0