prev  Menu  next


Loading or saving Images (original enhancement)

FileName$ below is a string expression .

GLOAD FileName$
loads the image to the graphics pane from the file.
Available image formats are BMP, PNG, JPEG, GIF, TIFF and XPM.
The pane size is adjusted with the size of the image, and the problem coordinates are set to 0 for left end, 1 for right end, 0 for bottom end, 1 for top end.
Example
GLOAD "C:\WINDOWS\winnt.bmp"

[Note]
SET WINDOW 0,PIXELX(1),0,PIXELY(1)
sets the pixel-wise problem coordinates.

[Note]
GLOAD statement is valid only on the Bitmap Graphics Mode.


GSAVE FileName$
saves the whole image to the file.
FileName$ must contain an extension ".BMP", ".PNG", ".JPG", "JPEG" or ".TIFF", either upper or lower.