Interface Image

  • All Known Implementing Classes:
    AWTImage, GDXTexture, TeaImage

    public interface Image
    Represents an image based on raster graphics. Images be loaded from one of the common file formats (for example PNG or JPEG), but can also be created programmatically. Images stored in files are loaded using a MediaLoader.
    • Method Detail

      • getWidth

        int getWidth()
      • getHeight

        int getHeight()
      • getRegion

        Image getRegion​(Rect region)
        Returns an Image instance that only contains the specified region from within this image.
      • getColor

        ColorRGB getColor​(int x,
                          int y)
      • getAlpha

        int getAlpha​(int x,
                     int y)
        Returns the alpha of a pixel within the image. The returned value is between 0 (fully transparent) and 100 (fully opaque).