DrawArc

Vector graphics

Mô tả

Vẽ một cung tròn lên trang đang chọn. Cung được vẽ theo chiều kim đồng hồ từ StartAngle đến EndAngle

Cú pháp

Delphi

Function TPDFlib.DrawArc(XPos, YPos, Radius, StartAngle, EndAngle: Double; Pie, DrawOptions: Integer): Integer;

ActiveX

Function PDFlib::DrawArc(XPos As Double, YPos As Double, Radius As Double, StartAngle As Double, EndAngle As Double, Pie As Long, DrawOptions As Long) As Long

DLL

int DLDrawArc(int InstanceID, double XPos, double YPos, double Radius, double StartAngle, double EndAngle, int Pie, int DrawOptions);

Tham số

XPosTọa độ ngang của tâm cung
YPosTọa độ dọc của tâm cung
RadiusBán kính của cung Góc bắt đầu vẽ
StartAngle
EndAngleAngle to end drawing at
PieVẽ hai cánh của cung: 0 = Không 1 = Có
DrawOptions0 = Outline 1 = Fill 2 = Fill and Outline 3 = Close, Fill and Outline (if Pie = 1)