net.sf.sqs_xml.image
Class RasterSource

java.lang.Object
  extended bynet.sf.sqs_xml.image.RasterSource
Direct Known Subclasses:
ImageTranslationFilter, NoiseCancelFilter, ReaderSource

public class RasterSource
extends java.lang.Object


Field Summary
static int BLACK
           
static int[] BLACK_COLOR
           
static int WHITE
           
static int[] WHITE_COLOR
           
 
Constructor Summary
RasterSource()
           
RasterSource(java.awt.image.BufferedImage image)
           
RasterSource(java.awt.image.Raster raster)
           
RasterSource(RasterSource source)
           
 
Method Summary
 java.awt.image.WritableRaster createCompatibleWritableRaster(int w, int h)
           
static java.awt.image.BufferedImage createImage(java.awt.image.Raster src)
           
static java.awt.image.BufferedImage createImage(java.awt.image.Raster src, boolean isRGBMode)
           
 int getHeight()
           
 int getNumBands()
           
 java.awt.image.Raster getRaster()
           
 int getRGBColor(int x, int y)
           
 int getRGBColor(java.awt.geom.Point2D p)
           
 RasterSource getSource()
           
 int getThreshold()
           
 int getWidth()
           
 boolean isBlack(int src)
           
 boolean isBlack(int x, int y)
           
 void setThreshold(int threshold)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BLACK

public static final int BLACK
See Also:
Constant Field Values

BLACK_COLOR

public static final int[] BLACK_COLOR

WHITE

public static final int WHITE
See Also:
Constant Field Values

WHITE_COLOR

public static final int[] WHITE_COLOR
Constructor Detail

RasterSource

public RasterSource()

RasterSource

public RasterSource(java.awt.image.BufferedImage image)

RasterSource

public RasterSource(java.awt.image.Raster raster)

RasterSource

public RasterSource(RasterSource source)
Method Detail

setThreshold

public void setThreshold(int threshold)

getThreshold

public int getThreshold()

getWidth

public final int getWidth()

getHeight

public final int getHeight()

isBlack

public final boolean isBlack(int src)

isBlack

public boolean isBlack(int x,
                       int y)

getRGBColor

public int getRGBColor(java.awt.geom.Point2D p)

getRGBColor

public int getRGBColor(int x,
                       int y)

getRaster

public java.awt.image.Raster getRaster()

createCompatibleWritableRaster

public java.awt.image.WritableRaster createCompatibleWritableRaster(int w,
                                                                    int h)

getNumBands

public int getNumBands()

getSource

public RasterSource getSource()

createImage

public static java.awt.image.BufferedImage createImage(java.awt.image.Raster src)

createImage

public static java.awt.image.BufferedImage createImage(java.awt.image.Raster src,
                                                       boolean isRGBMode)