LOADIMAGE

From Liberty BASIC Family
Jump to navigation Jump to search
Not supported in Just BASIC Not supported in Liberty BASIC Not supported in Liberty BASIC 5 Supported in Run BASIC

Description

Load an image from a file to display in a graphics area

Syntax

  1. LOADIMAGE nameExpr$, path$ - Load an image file from path$ naming it nameExpr$

Hints

Use DRAWIMAGE() to send the loaded image to the graphics area

Example

'Load the image
loadimage "banner", "cloudsbanner1.jpg"

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

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

'display it on the web page
render #g

Useful Procedures

' Place a useful function or sub using this keyword here