de.matthiasmann.twl.renderer
Interface QueriablePixels

All Known Implementing Classes:
LWJGLTexture, TextureArea, TextureAreaTiled

public interface QueriablePixels

Optional interface for Image / Texture to get access to the pixel data


Method Summary
 int getPixelValue(int x, int y)
          Returns the color value of the spicified pixel
 

Method Detail

getPixelValue

int getPixelValue(int x,
                  int y)
Returns the color value of the spicified pixel

Parameters:
x - the X coordinate
y - the Y coordinate
Returns:
the ARGB value
Throws:
java.lang.IllegalArgumentException - when the coordinates are out of bounds
java.lang.UnsupportedOperationException - when the internal representation does not support querying the pixel data
See Also:
Color.toARGB()