|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.illinois.ncsa.versus.adapter.impl.BufferedImageAdapter
public class BufferedImageAdapter
Adapter for java buffered images.
| Field Summary | |
|---|---|
private java.awt.image.BufferedImage |
image
Buffered image |
private static org.apache.commons.logging.Log |
log
Commons logging |
| Constructor Summary | |
|---|---|
BufferedImageAdapter()
Empty adapter. |
|
BufferedImageAdapter(java.awt.image.BufferedImage image)
Adapter for java buffered images. |
|
| Method Summary | |
|---|---|
double |
getHSVPixel(int row,
int column,
int band)
Get one pixel at a time. |
double[][][] |
getHSVPixels()
Get all pixels in document. |
java.awt.image.BufferedImage |
getImage()
Get buffered image. |
java.lang.String |
getName()
Pretty name of adapter. |
double |
getRGBPixel(int row,
int column,
int band)
Get one pixel at a time. |
double[][][] |
getRGBPixels()
Get all pixels in document. |
void |
load(java.io.File file)
Load a file from disk in the data structure specific to the adapter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.awt.image.BufferedImage image
private static org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public BufferedImageAdapter()
public BufferedImageAdapter(java.awt.image.BufferedImage image)
image - | Method Detail |
|---|
public java.awt.image.BufferedImage getImage()
public double[][][] getRGBPixels()
HasRGBPixels
getRGBPixels in interface HasRGBPixels
public void load(java.io.File file)
throws java.io.IOException
FileLoader
load in interface FileLoaderfile - file to load
java.io.IOException
public double getRGBPixel(int row,
int column,
int band)
HasRGBPixels
getRGBPixel in interface HasRGBPixelsrow - the row in the image - top to bottomcolumn - column in the image - left to rightband - pixel's band
public java.lang.String getName()
Adapter
getName in interface Adapter
public double getHSVPixel(int row,
int column,
int band)
HasHSVPixels
getHSVPixel in interface HasHSVPixelsrow - the row in the image - top to bottomcolumn - column in the image - left to rightband - pixel's band
public double[][][] getHSVPixels()
HasHSVPixels
getHSVPixels in interface HasHSVPixels
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||