Omron NB-series Operation Manual page 324

Nb-series programmable terminals
Hide thumbs Also See for NB-series:
Table of Contents

Advertisement

3 Functions of NB-Designer
(g) Sector "DrawPie (x, y, w, h, start, end, pen, brh)"
Parameter
x
y
w
h
start
end
pen
brh
3-282
The description of the parameter is as follows:
Type
Int.
X-axis coordinate of the upper-left corner of the circumscribed rectangle
of sector (Unit: pixel)
Int.
Y-axis coordinate of the upper-left corner of the circumscribed rectangle
of sector (Unit: pixel)
Int.
Width of the circumscribed rectangle of sector (Unit: pixel)
Int.
Height of the circumscribed rectangle of sector (Unit: pixel)
Int.
The starting angle of the sector (Unit: degree)
Int.
The end angle of the sector (Unit: degree)
PenParam
Sector-border pen
BrushParam
Sector-filling brush
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);
}
NB-series Programmable Terminals NB-Designer Operation Manual(V106)
Descriptions

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents