org.encog.util
Class ImageSize
- java.lang.Object
-
- org.encog.util.ImageSize
-
- All Implemented Interfaces:
- java.awt.image.ImageObserver
public class ImageSize extends java.lang.Object implements java.awt.image.ImageObserverSimple class to determine the size of an image.
-
-
Constructor Summary
Constructors Constructor and Description ImageSize(java.awt.Image image)Determine the size of an image.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetHeight()intgetWidth()booleanimageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)The image has been updated.
-
-
-
Constructor Detail
-
ImageSize
public ImageSize(java.awt.Image image)
Determine the size of an image.- Parameters:
image- The image to be sized.
-
-
Method Detail
-
getHeight
public int getHeight()
- Returns:
- the height
-
getWidth
public int getWidth()
- Returns:
- the width
-
imageUpdate
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)The image has been updated.- Specified by:
imageUpdatein interfacejava.awt.image.ImageObserver- Parameters:
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.- Returns:
- True if more data is still needed.
-
-
DMelt 3.0 © DataMelt by jWork.ORG