Package 

Class ImageVisual


  • 
    public class ImageVisual
    extends SingleLayerVisual
                        

    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.