複製鏈接
請複製以下鏈接發送給好友

ARC

(編程函數)

鎖定
ARC,計算機函數語言的一種,arc函數用於創建圓或部分圓,函數語法為BOOL Arc()。
中文名
ARC
釋    義
編程函數
作    用
arc函數繪畫一個橢圓圓弧
原    型
BOOL Arc()

ARC定義和用法

arc() 方法創建弧/曲線(用於創建圓或部分圓)。
提示:如需通過 arc() 來創建圓,請把起始角設置為 0,結束角設置為 2*Math.PI。
提示:請使用stroke()或fill()方法在畫布上繪製實際的弧。 [1] 

ARC原型

BOOL Arc(
HDC hdc,
int xLeft,
int yTop,
int xRight,
int yBottom,
int XStart,
int YStart,
int XEnd,
int YEnd);

ARC參數

hdc 繪畫的窗口句柄
xLeft和nyTopt指定外接矩形左上角座標
xRight和yBottom指定外接矩形右下角座標
xStart和nyStart指定圓弧開始座標
xEnd和nyEnd指定圓弧結束座標
MFC中ARC函數 MFC中ARC函數
易語言聲明
.版本 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,
參考資料