public interface TextureDataProvider extends DataProvider<Texture>
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
getData()
Data getter.
|
java.awt.image.BufferedImage |
getImage() |
java.nio.ByteBuffer |
getSubData(int x,
int y,
int width,
int height)
Sub-data getter.
|
java.awt.image.BufferedImage |
getSubImage(int x,
int y,
int width,
int height) |
java.awt.Dimension |
getTextureSize()
Texture size getter.
|
addDataUser, isValid, removeDataUser
java.awt.Dimension getTextureSize()
java.nio.ByteBuffer getData()
java.nio.ByteBuffer getSubData(int x, int y, int width, int height)
x
- rectangle origin x-coordinate.y
- rectangle origin y-coordinate.width
- rectangle width.height
- rectangle height.java.awt.image.BufferedImage getImage()
java.awt.image.BufferedImage getSubImage(int x, int y, int width, int height)
x
- rectangle origin x-coordinate.y
- rectangle origin y-coordinate.width
- rectangle width.height
- rectangle height.