NXC
Version 1.2.1 r5
Main Page
Related Pages
Modules
Data Structures
Files
Examples
All
Data Structures
Files
Functions
Variables
Groups
Pages
ex_sysdrawline.nxc
This is an example of how to use the
SysDrawLine
function along with the
DrawLineType
structure.
task main()
{
DrawLineType
dlArgs;
dlArgs.
StartLoc
.
X
= 20;
dlArgs.
StartLoc
.
Y
= 20;
dlArgs.
EndLoc
.
X
= 60;
dlArgs.
EndLoc
.
Y
= 60;
dlArgs.
Options
= 0x01;
// clear before drawing
SysDrawLine
(dlArgs);
}
Generated by
1.8.2