Skip to main content

SUIImage

class SUIImage

Renders images on the screen with defined textures, colors, etc, can be modified as you like.

See the SUIImage component topic to learn more about SUIImage.


public class SUIImage extends Component

— Constructors (1) —

ConstructorDescription
SUIImage()Creates a new SUIImage.

— Methods (13) —

NameDescription
Color getColor()Returns the current color of the SUIImage.
void setColor(Color color)Sets the current color of the SUIImage to be "color" argument.
[Texture] getImage()Returns the current texture of the SUIImage.
void setImage([Texture] texture)Sets the current texture of the SUIImage to be "texture" argument.
boolean isIgnoreMask()Returns true if the SUIImage has the "Ignore mask" option checked, false if not.
void setIgnoreMask(boolean value)Defines whether the SUIImage will have the "Ignore mask" option checked or unchecked to be "value" argument.
int getBorder()Returns the current border size of the SUIImage.
void setBorder(int value)Sets the current border size of the SUIImage to be "value" argument.
SUnitType getBorderUnitType()Returns the border type(Pixel or DIP) of the SUIImage.
void setBorderUnitType(SUnitType value)Sets the border type ("Pixel" or "DIP") of the SUIImage to be "value" argument.
void setBorder(int value, SUnitType unitType)Sets the border size of the SUIImage and whether type("Pixel" or "DIP") of the SUIImage to be "value" argument.
SImageType getImageType()Returns the type of the SUIImage("Simple" or "Sliced").
void setImageType(SImageType value)Defines the type of the SUIImage("Simple" or "Sliced") to be "sImageType" argument.