Package net.mtrop.doom.graphics
Interface IndexedGraphic
public interface IndexedGraphic
Deprecated.
Since 2.13.0 - made superfluous.
Interface for graphic data with indexed palettes.
- Since:
- 2.2.0
- Author:
- Matthew Tropiano
-
Method Summary
-
Method Details
-
getWidth
int getWidth()Deprecated.- Returns:
- the width of this graphic in pixels.
-
getHeight
int getHeight()Deprecated.- Returns:
- the height of this graphic in pixels.
-
getPixel
int getPixel(int x, int y) Deprecated.Gets the pixel data at a location in the graphic. May return -1 if this graphic has translucent pixels.- Parameters:
x
- graphic x-coordinate.y
- graphic y-coordinate.- Returns:
- a palette index value from 0 to 255, or
Picture.PIXEL_TRANSLUCENT
if translucent. - Throws:
ArrayIndexOutOfBoundsException
- if the provided coordinates is outside the graphic.
-