<< Click to Display Table of Contents >>
Graphic.js
Namespace |
SuperGIS.Graphic |
||
Class |
Canvas(object Canvas) |
control the canvas. |
|
Method |
void |
clear() |
clear the canvas. |
Method |
void |
resize(cx, cy) |
resize the canvas. |
Method |
Canvas |
getCanvas() |
return the canvas. |
Method |
Context |
getContext() |
return the context |
Method |
string |
measureText(text, size, family) |
measure the size of the text. |
Method |
void |
drawText(text, x, y, color, bkColor, size, family) |
draw a text. |
Method |
void |
drawImage(timg, x, y, w, h, cx, cy, angle) |
draw an image. |
Method |
void |
drawLine(x1, y1, x2, y2, c, w) |
draw a line. |
Method |
void |
drawPolyline(pts, c, w) |
draw a polyline. |
Method |
void |
drawPolygon(ptss, c) |
draw a polygon. |
© 2017 Supergeo Technologies Inc.