DRAWIMAGE()

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

Send an image loaded from a file to display in a graphics area

Syntax

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

Hints

Use LOADIMAGE to load the image from disk

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