DrawEllipticPie
矢量图形
描述
绘制封闭的椭圆扇形:从椭圆中心到弧线起点,沿弧线再返回中心点
语法
Delphi
Function TPDFlib.DrawEllipticPie(XPos, YPos, Width, Height, StartAngle, EndAngle: Double; DrawOptions: Integer): Integer;
ActiveX
Function PDFlib::DrawEllipticPie(XPos As Double, YPos As Double, Width As Double, Height As Double, StartAngle As Double, EndAngle As Double, DrawOptions As Long) As Long
DLL
int DLDrawEllipticPie(int InstanceID, double XPos, double YPos, double Width, double Height, double StartAngle, double EndAngle, int DrawOptions);
参数
| XPos | 椭圆中心的水平坐标 |
|---|---|
| YPos | 椭圆中心的垂直坐标 |
| Width | 当前测量单位中的椭圆宽度 |
| Height | 当前测量单位中的椭圆高度 |
| StartAngle | 以度为单位的起始角度 |
| EndAngle | 以度为单位的终止角度 |
| DrawOptions | 0 = 轮廓;1 = 填充;2 = 填充和轮廓 |
返回值
| 0 | 角度跨度或绘制选项无效 |
|---|---|
| 1 | 已绘制椭圆扇形路径 |
备注
当闭合线段应直接连接弧线端点时,请使用 DrawEllipticChord