org.encog.util
public class ImageSize extends Object implements ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
ImageSize(Image image)
Determine the size of an image.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
int |
getWidth() |
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int width,
int height)
The image has been updated.
|
public ImageSize(Image image)
image
- The image to be sized.public int getHeight()
public int getWidth()
public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface ImageObserver
img
- 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.Copyright © 2014. All Rights Reserved.