Skip to main content

GUIImage

class GUIImage

Class responsible for creating and modifying 2D images.


public class GUIImage extends GUIElement

— Constructors (7) —

ConstructorDescription
GUIImage()Creates a new GUIImage.
GUIImage([Texture] texture, int x, int y, int width, int height)Creates a new GUIImage with its current texture defined to be "texture" argument, X position to be "x" argument, Y position to be "y" argument, width to be "width" argument and height to be "height" argument.
GUIImage(Color color, int x, int y, int width, int height)Creates a new GUIImage with its current color defined to be "color" argument, X position to be "x" argument, Y position to be "y" argument, width to be "width" argument and height to be "height" argument.
GUIImage(Color color, [Texture] texture, int x, int y, int width, int height)Creates a new GUIImage with its current color defined to be "color" argument, texture to be "texture" argument, X position to be "x" argument, Y position to be "y" argument, width to be "width" argument and height to be "height" argument ".
GUIImage(Color color, [Texture] texture, GUIRect guiRect)Creates a new GUIImage with its current color defined to be "color" argument, texture to be "texture" argument, and Rect(GUIRect) to be "guiRect" argument.
GUIImage(Color color, [Texture] texture, int x, int y, int width, int height, int layer)Creates a new GUIImage with its current color defined to be "color" argument, texture to be "texture" argument, X position to be "x" argument, Y position to be "y" argument, width to be "width" argument, height to be "height" argument " and layer to be "layer" argument.
GUIImage(Color color, [Texture] texture, GUIRect guiRect, int layer)Creates a new GUIImage with its current color defined to be "color" argument, texture to be "texture" argument, Rect(GUIRect) to be "guiRect" argument and layer to be "layer" argument.

— Methods (12) —

NameDescription
boolean isFlipX()Returns true if GUIImage X axis texture inversion is enabled, false if not.
void setFlipX(boolean flipX)Defines whether the GUIImage texture's X axis flipping will be enabled or disabled to be "flipX" argument.
boolean isFlipY()Returns true if GUIImage Y axis texture inversion is enabled, false if not.
void setFlipY(boolean flipY)Defines whether the GUIImage texture's Y axis flipping will be enabled or disabled to be "flipY" argument.
Color getColor()Returns the current color of the GUIImage.
void setColor(Color color)Sets the current color of the GUIImage to be "color" argument.
[Texture] getTexture()Returns the current texture of the GUIImage.
void setTexture([Texture] texture)Sets the current texture of the GUIImage to be "texture" argument.
boolean isOverrideAlpha()Returns true if GUIImage opacity(alpha) is on, false if not.
void setOverrideAlpha(boolean overrideAlpha)Defines whether opacity(alpha) will be turned on or off to be "overrideAlpha" argument.
float getAlpha()Returns the current opacity value of the GUIImage.
void setAlpha(float alpha)Sets the current value of the GUIImage's opacity to be "alpha" argument.