Download Workabout MX User Manual Complete

Transcript
and up respectively.
For horizontal lines, the line includes the pixel with the lower x
coordinate and excludes the pixel with the higher x coordinate. Similarly
for vertical lines, the line includes the pixel with the lower y coordinate
and excludes the pixel with the higher y coordinate. For oblique lines
(where the x and y coordinates change), the line is drawn minus one
or both end points.
The current position moves to the end of the line drawn.
"gLINEBY 0,0" sets the pixel at the current position.
See also gLINETO, gPOLY.
gLINETO
Usage:
gLINETO x%,y%
Draws a line from the current position to the point "x%,y%". The
current position moves to "x%,y%".
For horizontal lines, the line includes the pixel with the lower x
coordinate and excludes the pixel with the higher x coordinate. Similarly
for vertical lines, the line includes the pixel with the lower y coordinate
and excludes the pixel with the higher y coordinate. For oblique lines
(where the x and y coordinates change), the line is drawn minus one
or both end points.
To plot a single point, use gLINETO to the current position
(or "gLINEBY 0,0").
See also gLINEBY, gPOLY.
gLOADBIT
Usage - one of:
id%=gLOADBIT(name$,write%,i%)
id%=gLOADBIT(name$,write%)
id%=gLOADBIT(name$)
Loads a bitmap from the named bitmap file and makes it the current
drawable. Sets the current position to 0,0, its top left corner. If
"name$" has no file extension ".PIC" is used. The bitmap is
kept as a local copy in memory.
Returns "id%" (2 to 8) which identifies this bitmap for other
keywords.
"write%"=0 sets read-only access. Attempts to write to the bitmap
in memory will be ignored, but the bitmap can be used by other programs
without using more memory. "write%"=1 allows you to write to and
re-save the bitmap. This is the default case.