public class ImageSize
extends java.lang.Object
implements java.awt.image.ImageObserver
| Constructor and Description |
|---|
ImageSize(java.awt.Image image)
Determine the size of an image.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight() |
int |
getWidth() |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
The image has been updated.
|
public ImageSize(java.awt.Image image)
image - The image to be sized.public int getHeight()
public int getWidth()
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
imageUpdate in interface java.awt.image.ImageObserverimg - The image.infoflags - Which data has been loaded.x - Not used.y - Not used.width - The width of the image.height - The height of the image.