DEF DRAWIMAGEFILE StatementEdit
✔ Appearance ✔ Standard ✔ Console
DEF DRAWIMAGEFILE ( fName$ , vRef% )
May 2001 (Release 5)
You may use this statement to display a picture directly from disk. The picture can actually be too large to load into memory. You may determine the size of the picture in advance using
DEF GETIMAGEFILERECT. The following example shows how to open a file and display it in a window.
In order to use this routine, you must include the file named "
Subs Image Files.Incl" as shown in the example below.
INCLUDE "Subs Image Files.Incl"
DIM r as rect
gFBUseNavServices = _ztrue
fName$ = FILES$(_fOpenPreview,,"Select a file to open", vRef%)
LONG IF fName$
PRINT @(1,1)"Click to exit"
UNTIL FN BUTTON