|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This is an interface that is implemented by objects that can draw themselves onto a Graphics context.
| Field Summary | |
static int |
DISABLED
This is an option that tells the image that it should draw itself in a disabled (usually "grayed") state. |
static int |
OUTLINED
This is an option that tells the image that it should draw an outline around itself. |
| Method Summary | |
void |
draw(Graphics g,
int x,
int y,
int options)
Draw the full image at the specified co-ordinates in the graphics provided. |
void |
free()
This frees system resources associated with the Image. |
Color |
getBackground()
This returns a background color if one is set for the image. |
int |
getHeight()
This returns the height of the image. |
int[] |
getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int options)
Retrieve the pixels from the Image in encoded ARGB values. |
int |
getWidth()
This returns the width of the image. |
boolean |
usesAlpha()
Returns whether the image uses the Alpha channel. |
| Field Detail |
public static final int DISABLED
public static final int OUTLINED
| Method Detail |
public void draw(Graphics g,
int x,
int y,
int options)
public int getWidth()
public int getHeight()
public Color getBackground()
public void free()
public int[] getPixels(int[] dest,
int offset,
int x,
int y,
int width,
int height,
int options)
dest - The destination int array. If this is null then a new array should be created.offset - The offset into the array to start placing pixels.x - the x co-ordinate within the image.y - the y co-ordinate within the image.width - the width of the pixel block to get.height - the height of the pixel block to get.options - options for retrieving pixels - currently unused.
public boolean usesAlpha()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||