主页 / 库函数目录 / 图形绘制 / ellipse

功能:

绘制椭圆弧线。
线条颜色由 setcolor() 函数指定。

声明:
void ellipse(
    int x,
    int y,
    int stangle,
    int endangle,
    int xradius,
    int yradius,
    PIMAGE pimg = NULL
);
void ellipsef(
    float x,
    float y,
    float stangle,
    float endangle,
    float xradius,
    float yradius,
    PIMAGE pimg = NULL
);
参数: x 椭圆弧线的圆心 x 坐标。 y 椭圆弧线的圆心 y 坐标。 stangle 椭圆弧线的起始角的角度。 endangle 椭圆弧线的终止角的角度。 xradius 椭圆弧线的 x 轴半径。 yradius 椭圆弧线的 y 轴半径。 pimg 绘制的目标图像,默认为 NULL(即绘制到窗口)。 返回值: (无) 示例: (无)