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, GIF, JPEG and PNG.
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.
If the graphics mode is the bitmap mode, FileName$ must contain the extension ".BMP", ".GIF", ".JPG" or ".PNG".
If the graphics mode is the metafile mode, FileName$ must contain the extension ".EMF".
If the graphics mode is the metafile mode, execution of GSAVE clears the image.

[supplement]
If the format is JPEG, compression rate can be assigned as following.
Example
GSAVE "A:SAMPLE1.JPG", "33%"