ARC(编程函数)

2023-01-27 108阅读

温馨提示:这篇文章已超过486天没有更新,请注意相关的内容是否还可用!

ARC

编程函数

ARC,计算机函数语言的一种,arc函数绘画一个椭圆圆弧。

中文名ARC
释 义编程函数
作 用arc函数绘画一个椭圆圆弧

定义和用法

arc() 方法创建弧/曲线(用于创建圆或部分圆)。

提示:如需通过 arc() 来创建圆,请把起始角设置为 0,结束角设置为 2*Math.PI。

提示:请使用stroke()或fill()方法在画布上绘制实际的弧。

原型

BOOL Arc(

HDC hdc,

int xLeft,

int yTop,

int xRight,

int yBottom,

int XStart,

int YStart,

int XEnd,

int YEnd);

参数

hdc 绘画的窗口句柄

xLeft和nyTopt指定外接矩形左上角坐标

xRight和yBottom指定外接矩形右下角坐标

xStart和nyStart指定圆弧开始坐标

xEnd和nyEnd指定圆弧结束坐标

易语言声明

.版本 2

.DLL命令 Arc, 逻辑型, "gdi32", "Arc", 公开, BOOL WINAPI Arc

.参数 hdc, 整数型, , HDC hdc,

.参数 nLeftRect, 整数型, , int nLeftRect,

.参数 nTopRect, 整数型, , int nTopRect,

.参数 nRightRect, 整数型, , int nRightRect,

.参数 nBottomRect, 整数型, , int nBottomRect,

.参数 nXStartArc, 整数型, , int nXStartArc,

.参数 nYStartArc, 整数型, , int nYStartArc,

.参数 nXEndArc, 整数型, , int nXEndArc,

.参数 nYEndArc, 整数型, , int nYEndArc,

参考资料

1.HTML canvas arc() 方法·W3Cschool

目录[+]