Home Contents | # gcx:load | Graphics | Core4 Lua Commands

## SYNOPSIS

img = gcx:load([filename)

## DESCRIPTION

Loads the image from filename and returns a graphics context containing the bitmap. If the file contains an animation, all frames are loaded and are ready to play.

## RETURN VALUE

A graphics context handle.

## ERRORS

Raises an error if gcx is not a graphics context.

## EXAMPLE

> > >
fb = gfx.open() img = fb:load("/media/mmc0a/320x240/bird.png") img:blit(0,0)

## SEE ALSO

gcx:image, gcx:blit, gfx.open, gcx:close, gcx:pixmap, gcx:window