DRAW / ERASE
  

DRAW / ERASE Commands

SYNTAX

DRAW GRAPH
IN WINDOW
<WindowName>
AT <
nRow>,<nCol>
[ TO <
nRow>,<nCol> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ TITLE <
cTitle>
TYPE [ BARS | LINES | POINTS ]
SERIES <
aSeries>
YVALUES <
aYValues>
DEPTH <
nDepth>
[ BARWIDTH <
nBarWidth> ]
[ BARSEPARATOR <
nBarSeparator> ]
HVALUES <
nHorizaontalValues>
SERIENAMES <
aSeriesNames>
COLORS <
anColors>
[ 3DVIEW ]
[ SHOWGRID ]
[ SHOWXGRID ]
[ SHOWYGRID ]
[ SHOWXVALUES ]
[ SHOWYVALUES ]
[ SHOWLEGENDS ]
[ SHOWDATAVALUES ]
[ DATAMASK <
mask> ]
[ LEGENDSWIDTH <
nLegendsWidth> ]
[ NOBORDER> ]

DRAW GRAPH IN WINDOW <WindowName>
AT <
nRow>,<nCol>
TO <
nRow>,<nCol>
TITLE <
cTitle>
TYPE PIE
SERIES <
aSeries>
DEPTH <
nDepth>
SERIENAMES <
aSeriesNames>
COLORS <
aColor>
[ 3DVIEW ]
[ SHOWXVALUES ]
[ SHOWLEGENDS ]
[ NOBORDER> ]

PRINT GRAPH IN WINDOW <WindowName>
AT <
nRow>,<nCol>
[ TO <
nRow>,<nCol> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ TITLE <
cTitle>
TYPE [ BARS | LINES | POINTS ]
SERIES <
aSeries>
YVALUES <
aYValues>
DEPTH <
nDepth>
[ BARWIDTH <
nBarWidth> ]
[ BARSEPARATOR <
nBarSeparator> ]
HVALUES <
nHorizaontalValues>
SERIENAMES <
aSeriesNames>
COLORS <
anColors>
[ 3DVIEW ]
[ SHOWGRID ]
[ SHOWXGRID ]
[ SHOWYGRID ]
[ SHOWXVALUES ]
[ SHOWYVALUES ]
[ SHOWLEGENDS ]
[ SHOWDATAVALUES ]
[ DATAMASK <
mask> ]
[ LEGENDSWIDTH <
nLegendsWidth> ]
[ LIBRARY <
clib> ]

PRINR GRAPH IN WINDOW <WindowName>
AT <
nRow>,<nCol>
TO <
nRow>,<nCol>
TITLE <
cTitle>
TYPE PIE
SERIES <
aSeries>
DEPTH <
nDepth>
SERIENAMES <
aSeriesNames>
COLORS <
anColor>
[ 3DVIEW ]
[ SHOWXVALUES ]
[ SHOWLEGENDS ]

[ RIGHT | ,BOTTOM ]
[ DATAMASK <
mask> ]
[ LIBRARY <clib> ]


DRAW TEXT IN WINDOW <WindowName> AT <nRow>,<nCol>
VALUE <
cString>
[ FONT <
cFontname> SIZE <nFontsize > ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ BACKCOLOR <
aBkRGB> ]
[ FONTCOLOR <
aRGB> ]
[ TRANSPARENT ]
[ ANGLE <
nAngle> ]

DRAW LINE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <
nRow>,<nCol>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]

DRAW RECTANGLE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <
nRow>,<nCol>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]
[FILLCOLOR <
anFillColor>]

DRAW ROUNDRECTANGLE IN WINDOW <WindownNme>
AT <
nRow>,<nCol>
TO <
nRow>,<nCol>
ROUNDWIDTH <
nWidth>
ROUNDHEIGHT <
nHeight>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]
[FILLCOLOR <
anFillColor>]

DRAW ELLIPSE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <
nRow>,<nCol>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]
[FILLCOLOR <
anFillColor>]

DRAW ARC IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <
nRow>,<nCol>
FROM RADIAL <
nRow>,<nCol>
TO RADIAL <
nRow>,<nCol>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
anFillColor>]

DRAW PIE IN WINDOW <WindowName> AT <nRow>,<nCol>
TO <
nRow>,<nCol>
FROM RADIAL <
nRow>, <nCol>
TO RADIAL <
nRow>, <nCol>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]
[FILLCOLOR <
anFillColor>]

DRAW POLYGON IN WINDOW <WindowName> ;
POINTS <
anPoints>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]
[FILLCOLOR <
anFillColor>]

NOTE:Points should be in the format {{row1,col1},{row2,col2},{row3,col3},{row4,col4}.....}

DRAW POLYBEZIER IN WINDOW <WindowName>
POINTS <
anPoints>
[PENCOLOR <
anPenColor>]
[PENWIDTH <
nPenWidth>]

DRAW PANEL IN WINDOW <WindowName> ;
AT <
nRow>,<nCol> ;
TO <
nRow>,<nCol> ;

DRAW BOX IN WINDOW <WindowName> ;
AT <
nRow>,<nCol> ;
TO <
nRow>,<nCol>

DRAW GRADIENT IN WINDOW <WindowName>
AT <
nRow>,<nCol>
TO <
nRow>,<nCol>
BEGINCOLOR <
aColor1>
ENDCOLOR <
aColor2>
VERTICAL> ] ;
BORDER <
border> ]

DRAW ICON IN WINDOW <WindowName>
AT <
nRow>,<nCol>
PICTURE | IMAGE | HICON <
icon>
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ COLOR <
nRGB> ]
[ TRANSPARENT>


ERASE [ IN ] WINDOW <WindowName>


EXAMPLE:

See demos in :
\samples\basic\Graph_3
\samples\basic\GraphPrint
\samples\Advanced\Animals;
\samples\Advanced\DrawGradient;
\samples\Advanced\FillGreen;
\samples\Advanced\FillTriangle