DrawChord
ベクターグラフィックス
説明
円弧を描画し、円弧の終点と始点の間を直線の弦で結んで閉じます
構文
Delphi
Function TPDFlib.DrawChord(XPos, YPos, Radius, StartAngle, EndAngle: Double; DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawChord(XPos As Double, YPos As Double, Radius As Double, StartAngle As Double, EndAngle As Double, DrawOptions As Long) As Long
DLL
int DLDrawChord(int InstanceID, double XPos, double YPos, double Radius, double StartAngle, double EndAngle, int DrawOptions);
パラメータ
| XPos | 円の中心の水平座標 |
|---|---|
| YPos | 円中心の垂直座標 |
| Radius | 現在の測定単位での円弧半径 |
| StartAngle | 度単位の開始角度 |
| EndAngle | 度単位の終了角度 |
| DrawOptions | 0 = 輪郭 1 = 塗りつぶし 2 = 塗りつぶしと輪郭 |
戻り値
| 0 | 角度範囲または描画オプションが無効でした |
|---|---|
| 1 | 弦形パスが描画されました |
備考
図形を円の中心経由で閉じる場合は DrawPie を使用します