DrawEllipticArc

矢量图形

描述

绘制由起始角度和结束角度之间的椭圆切割而成的圆弧。角度从椭圆顶部的 0 开始逆时针测量,即 12 O'Clock = 0 度,9 O'Clock = 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。