3-281
3 Functions of NB-Designer
NB-series Programmable Terminals NB-Designer Operation Manual(V106)
3-9 Macro Function
3
3-9-4 Other Descriptions
(c) Ellipse “DrawEclips (x, y, w, h, pen, brh)”
The description of the parameter is as follows:
(d) Line “DrawLine (x1, y1, x2, y2, pen)”
The description of the parameter is as follows:
(e) Polygon “DrawPolyg (pts, n, pen, brh)”
The description of the parameter is as follows:
(f) Arc “DrawArc (x, y, w, h, start, end, pen)”
The description of the parameter is as follows:
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the circumscribed rectangle
of ellipse (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the circumscribed rectangle
of ellipse (Unit: pixel)
w Int. Width of the circumscribed rectangle of ellipse (Unit: pixel)
h Int. Height of the circumscribed rectangle of ellipse (Unit: pixel)
pen PenParam Ellipse-border pen
brh BrushParam Ellipse-filling brush
Parameter Type Descriptions
x1 Int. X-axis coordinate of line origin (Unit: pixel)
y1 Int. Y-axis coordinate of line origin (Unit: pixel)
x2 Int. X-axis coordinate of line end (Unit: pixel)
y2 Int. Y-axis coordinate of line end (Unit: pixel)
pen PenParam Line brush
Parameter Type Descriptions
pts Point * The first address of vertex-coordinate data for polygon
n Int. Vertex data of the polygon
pen PenParam Polygon-border pen
brh BrushParam Polygon-filling brush
Parameter Type Descriptions
x Int. X-axis coordinate of the upper-left corner of the circumscribed rectangle
of arc (Unit: pixel)
y Int. Y-axis coordinate of the upper-left corner of the circumscribed rectangle
of arc (Unit: pixel)
w Int. Width of the circumscribed rectangle of arc (Unit: pixel)
h Int. Height of the circumscribed rectangle of arc (Unit: pixel)
start Int. The starting angle of the arc (Unit: degree)
end Int. The end angle of the arc (Unit: degree)
pen PenParam Arc-border pen