Image Visual
Visual showing an Image.
The image gets stretched to the size of the component that this visual is embedded in.
A sub-image can be loaded by passing offsetX/offsetY for the TOP_LEFT corner and width/height for the sub-image size. If width or height is passed as -1, the remaining image from offsetX/offsetY will be loaded.
Parameters
Image to show.
Width of sub-image. Pass -1 to use full width. Default: -1.
Height of sub-image. Pass -1 to use full height. Default: -1.
Left bound of sub-image. Default: 0.
Top bound of sub-image. Default: 0.
Constructors
Loads an ImageVisual from a path.
Loads an ImageVisual from a file.
Loads an ImageVisual from a BufferedImage.
Types
Functions
Adds a listener silently.
Adds a listener and calls Observer.update on this new listener.
Removes all listeners.
Copies this ImageVisual to a new object.
Notifies all listeners by calling Observer.update.
Removes a listener.
Properties
Property for backgroundRadius.
Property for borderRadius.
The transparency / alpha channel for this Visual.
Property for the transparency / alpha channel for this Visual.