LoadDraw

LoadImage and DrawImage
Images can be loaded from disk with **LoadImage** and displayed in a graphic object with **DrawImage**. The **LoadImage** statement requires a string containing the desired name for the image and a path and filename to the image file on disk. If there is not path in the filename, it is assumed to be in the current directory. The **DrawImage** method draws the named image in a graphic object.

The syntax for the statements is as follows:

LOADIMAGE #handle|nameExpr$, path$ - Load an image file from path$ naming it #handle or nameExpr$ //the ability to load an image as an object with handle does not appear to be implemented//


 * 1) handle DRAWIMAGE("name", x, y) - Draw the image named "name" at x, y

See also LoadGraphic.

code format="vbnet" 'Load the image loadimage "banner", "cloudsbanner1.jpg"

'create a graphic object. graphic #g, 800, 100

'draw the image in the graphic object.
 * 1) g drawimage("banner",0,0)

'display it on the web page render #g code