|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj2d.ImageProcessor
public abstract class ImageProcessor
This class will be the basis of many image processing algorithms. All image processing algorithms operate on an image and require the image's height and width. This class encapsulates that functionality. Also, all image processing operations will require a performAlgorithm() method. This method is left as abstract.
Field Summary |
---|
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ImageProcessor()
Construct a new ImageProcessor. |
Method Summary | |
---|---|
java.awt.Image |
getBaseImage()
Return a handle to the base image. |
int |
getBaseImageHeight()
Obtain the height of the base image. |
int |
getBaseImageWidth()
Obtain the width of the base image. |
int[] |
getPixels()
Return newImage converted to an array of pixels. |
java.awt.Image |
getProcessedImage()
Return a handle to the processed image. |
boolean |
imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
Implementation of ImageObserver. |
void |
openImage(java.io.File file)
Set the base image reference to an image object read from the specified file. |
abstract void |
processImage()
This abstract function must be overridden by any actual ImageProcessor implementation. |
void |
setBaseImage(java.awt.Image newImage)
Set the base image reference. |
void |
setPixels(int[] pixels)
Store the array of pixels into newImage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageProcessor()
Method Detail |
---|
public void openImage(java.io.File file)
public void setBaseImage(java.awt.Image newImage)
public java.awt.Image getBaseImage()
public int getBaseImageWidth()
public int getBaseImageHeight()
public java.awt.Image getProcessedImage()
public int[] getPixels()
public void setPixels(int[] pixels)
public boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
imageUpdate
in interface java.awt.image.ImageObserver
public abstract void processImage() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |