SVG에 이미지를 그리는 API이다.
Parameters | Type | Description |
---|---|---|
strImageUrl | String | 이미지 주소 |
nLeft | short | 왼쪽좌표 |
nTop | short | 위쪽좌표 |
nImageWidth | short | 이미지 너비 |
nImageHeight | short | 이미지 높이 |
Type | Description |
---|---|
short | 아이템 ID |
svg_mode가 true일때만 동작합니다.
function canvas_on_click(objInst, nXPoint, nYPoint, nPageXPoint, nPageYPoint, nItemId)
{
var id = -1;
// 이미지 그리기
id = canvas.drawimage("/test.jpg", nXPoint, nYPoint, 100, 50);
}