File docs/luadoc/goo.image.luadoc

Draws an image.

Functions

goo.image:getImage () Get the image
goo.image:getRotation () Get the rotation
goo.image:loadImage (filename) Load the image from a file or imageData
goo.image:setImage (image) Set the image.
goo.image:setRotation (rotation) Set the rotation of the image.


Functions

goo.image:getImage ( )

Get the image

Return value:

userdata: the image in image type.

goo.image:getRotation ( )

Get the rotation

Return value:

number: the rotation in radians.

goo.image:loadImage ( filename )

Load the image from a file or imageData

Parameters

  • filename :string
    the filename of the image, or imageData
goo.image:setImage ( image )

Set the image.

Parameters

  • image :userdata
    the image, must be image type.
goo.image:setRotation ( rotation )

Set the rotation of the image.

Parameters

  • rotation :number
    rotation in radians.

Valid XHTML 1.0!