net.sf.sqs_xml.image
Class RasterSource
java.lang.Object
net.sf.sqs_xml.image.RasterSource
- Direct Known Subclasses:
- ImageTranslationFilter, NoiseCancelFilter, ReaderSource
- public class RasterSource
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
RasterSource
public RasterSource()
RasterSource
public RasterSource(java.awt.image.BufferedImage image)
RasterSource
public RasterSource(java.awt.image.Raster raster)
RasterSource
public RasterSource(RasterSource source)
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)