Interface TextureDataProvider
-
- All Superinterfaces:
DataProvider<Texture>
- All Known Implementing Classes:
AbstractTextureDataProvider
,DrawnTextureDataProvider
public interface TextureDataProvider extends DataProvider<Texture>
- Author:
- Pierre Lando
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface org.scilab.forge.scirenderer.data.DataProvider
addDataUser, isValid, removeDataUser
-
-
-
-
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.
-
-