AddMeasureLineAnnotation
주석 및 핫스폿 링크, 측정 및 좌표 단위
설명
/IT /LineDimension, 리더 선(/LL, /LLE), /Subtype /RL /Measure 딕셔너리, 자동으로 합성된 normal 외관 스트림(/AP /N)을 갖춘 /Subtype /Line 주석을 추가합니다
구문
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