캔버스 » Api
drawcircle
Description
Parameters
Parameters |
Type |
Description |
nLeft |
short |
왼쪽좌표 |
nTop |
short |
위쪽좌표 |
nRadius |
short |
반지름 |
clrFillColor |
COLOR |
[옵션]내부 색상 |
bTransparent |
BOOL |
[옵션]내부 투명 여부(기본값:false) |
nLineWidth |
short |
[옵션]선 두께 |
nLineStyle |
short |
[옵션]선 스타일 |
clrLineColor |
COLOR |
[옵션]선 색상 |
Return Value
Type |
Description |
short |
아이템 ID |
Remark
* 옵션파라미터중 기본값이 명시되어 있지 않은 파라미터는 캔버스에 설정된 속성을 따른다.
Example
function canvas_on_click(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nItemId)
{
var id = -1;
var fill_color = factory.rgb(255,255,0);
// 원 그리기
id = canvas.drawcircle(nXPoint, nYPoint, 100, fill_color, false, 0);
if (id >= 0) {
// 원에 텍스트 출력
canvas.setitemtext(id, "this is circle");
}
}
See Also
drawline
drawpolyline
drawrect
drawellipse
Viewer Ver.
9.1.1.1
Update Date
20211108