DrawEllipticArc

向量圖形

描述

繪製橢圓從起始角到結束角之間切出的弧。角度以逆時針量測,0 度在橢圓正上方,例如 12 點鐘方向 = 0 度、9 點鐘方向 = 90 度

語法

Delphi

Function TPDFlib.DrawEllipticArc(XPos, YPos, Width, Height, StartAngle, EndAngle: Double; Pie, DrawOptions: Integer): Integer;

ActiveX

Function PDFlib::DrawEllipticArc(XPos As Double, YPos As Double, Width As Double, Height As Double, StartAngle As Double, EndAngle As Double, Pie As Long, DrawOptions As Long) As Long

DLL

int DLDrawEllipticArc(int InstanceID, double XPos, double YPos, double Width, double Height, double StartAngle, double EndAngle, int Pie, int DrawOptions);

參數

XPos橢圓中心的水平座標
YPos橢圓中心的垂直座標
Width橢圓的寬度
Height橢圓的高度
StartAngle曲線起始的角度
EndAngle曲線結束的角度
Pie是否畫出弧的兩臂:0 = 否 1 = 是
DrawOptions0 = 外框 1 = 填色 2 = 填色加外框 3 = 封閉、填色加外框(Pie = 1 時)

傳回值

橢圓弧繪製成功後傳回 1。角度跨度超過 360 度時傳回 0。