Interface TextureDataProvider

All Superinterfaces:
DataProvider<Texture>
All Known Implementing Classes:
AbstractTextureDataProvider, DrawnTextureDataProvider

public interface TextureDataProvider extends DataProvider<Texture>
Author:
Pierre Lando
  • Method Details

    • getTextureSize

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

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

      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

      BufferedImage getImage()
      Returns:
      the data as a BufferedImage
    • getSubImage

      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.