3 Functions of NB-Designer
3-282
NB-series Programmable Terminals NB-Designer Operation Manual(V106)
(g) Sector “DrawPie (x, y, w, h, start, end, pen, brh)”
The description of the parameter is as follows:
For the drawing functions, RGB values can be used directly for the colors.
For the corresponding relationship between 65536 Color and RGB, the system will
handle it directly.
int MacroEntry()
{
PenParam pen;
BrushParam brh;
Point pts[5];
short buf[2] = {0};
pts[0].x = 0;
pts[0].y = 0;
pts[1].x = 100;
pts[1].y = 0;
pts[2].x = 120;
pts[2].y = 150;
pen.type = 1;
pen.width = 0;
pen.color = RGB(0, 0, 0xFF);
brh.type = BFS_ODWNGRDT_FRTTLD;
brh.foreColor = RGB(0, 0, 0);
brh.backColor = RGB(255, 255, 255);
DrawRect(0, 0, 400, 400, pen, brh);
}
Parameter
Type
Descriptions
x
Int.
X-axis coordinate of the upper-left corner of the circumscribed rectangle
of sector (Unit: pixel)
y
Int.
Y-axis coordinate of the upper-left corner of the circumscribed rectangle
of sector (Unit: pixel)
w
Int.
Width of the circumscribed rectangle of sector (Unit: pixel)
h
Int.
Height of the circumscribed rectangle of sector (Unit: pixel)
start
Int.
The starting angle of the sector (Unit: degree)
end
Int.
The end angle of the sector (Unit: degree)
pen
PenParam
Sector-border pen
brh
BrushParam
Sector-filling brush
Summary of Contents for NB10W-TW01B
Page 4: ......
Page 10: ...Terminology 6 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 528: ...8 Web Interface 8 10 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 544: ...Appendices A 16 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 546: ...Revision 2 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 547: ......