Documentation > GUI > Image

Parent du composant : Panel
Version: 2.0.4

Constructor Image.New(File, X, Y, ScaleX, ScaleY, Z)

This function creates a new Image object.

File

Name and path of the image file.

X

Position on the X axis of the image (default: 0).

Y

Position on the Y axis of the image (default: 0).

ScaleX

Scale on the X axis of the image (default: 1).

ScaleY

Scale on the Y axis of the image (default: 1).

Z

Z-order of the image (default: 1).

Return

Return an instance of Image object.

Image:draw()

This function draws the image if visible.

Image:getFlip()

This function returns the flip of the image.

Return

Returns the flip of the image.

Image:setFlip(Flip)

This functions define on which side the imge must be displayed.

Flip

Direction to display the image. 1 for standard and -1 for reverse.

Image:setImage(File)

This function change the current image by the given one.

File

Path and name of the new image.

Image:getOrigin()

This function returns the position of the origin of the image.

Return

Returns the position on the X and Y axis of the image origin.

Image:setOrigin(OX, OY)

This function sets the origin coordonates of the image.

OX

Position on the X axis of the image origin (default: 0).

OY

Position on the Y axis of the image origin (default: 0).

Imge:centerOrigin()

This function sets the origin on the center of the image.

Image:getRotation()

Cette fonction retourne l'angle de rotation en degrés de l'image.

Image:setRotation(Rotation)

Cette fonction applique une rotation en degrés à l'image.

Image:toString(NoTitle)

This function display all variables containing in the current Image instance (tables and functions are excluded).

NoTitle

Indicates if the title must be displayed (false) or not (true).