NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
ex_sysdrawgraphic.nxc

This is an example of how to use the SysDrawGraphic function along with the DrawGraphicType structure.

task main()
{
dgArgs.Location.X = 20;
dgArgs.Location.Y = 20;
dgArgs.Filename = "image.ric";
ArrayInit(dgArgs.Variables, 0, 10); // 10 zeros
dgArgs.Variables[0] = 12;
dgArgs.Variables[1] = 14; // etc...
dgArgs.Options = 0x00; // do not clear before drawing
SysDrawGraphic(dgArgs);
}