Interface TextureDataProvider

    • Method Detail

      • getTextureSize

        java.awt.Dimension getTextureSize()
        Texture size getter.
        Returns:
        the size of the texture in pixel.
      • getData

        java.nio.ByteBuffer getData()
        Data getter.
        Returns:
        the data.
      • getSubData

        java.nio.ByteBuffer getSubData​(int x,
                                       int y,
                                       int width,
                                       int height)
        Sub-data getter.
        Parameters:
        x - rectangle origin x-coordinate.
        y - rectangle origin y-coordinate.
        width - rectangle width.
        height - rectangle height.
        Returns:
        the data.
      • getImage

        java.awt.image.BufferedImage getImage()
        Returns:
        the data as a BufferedImage
      • getSubImage

        java.awt.image.BufferedImage getSubImage​(int x,
                                                 int y,
                                                 int width,
                                                 int height)
        Parameters:
        x - rectangle origin x-coordinate.
        y - rectangle origin y-coordinate.
        width - rectangle width.
        height - rectangle height.
        Returns:
        the sub-data as a BufferedImage.