ARC

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,

相關詞條

相關搜索

其它詞條