public class CopyDither
extends java.lang.Object
implements java.awt.image.BufferedImageOp, java.awt.image.RasterOp
IndexColorModel.| Modifier and Type | Field and Description |
|---|---|
protected java.awt.image.IndexColorModel |
indexColorModel |
| Constructor and Description |
|---|
CopyDither()
Creates a
CopyDither, with no fixed
IndexColorModel. |
CopyDither(java.awt.image.IndexColorModel pICM)
Creates a
CopyDither, using the given
IndexColorModel for dithering into. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
createCompatibleDestImage(java.awt.image.BufferedImage pSource,
java.awt.image.ColorModel pDestCM)
Creates a compatible
BufferedImage to dither into. |
java.awt.image.WritableRaster |
createCompatibleDestRaster(java.awt.image.Raster pSrc)
Creates a compatible
Raster to dither into. |
java.awt.image.WritableRaster |
createCompatibleDestRaster(java.awt.image.Raster pSrc,
java.awt.image.IndexColorModel pIndexColorModel) |
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage pSource,
java.awt.image.BufferedImage pDest)
Performs a single-input/single-output dither operation, applying basic
Floyd-Steinberg error-diffusion to the image.
|
java.awt.image.WritableRaster |
filter(java.awt.image.Raster pSource,
java.awt.image.WritableRaster pDest)
Performs a single-input/single-output dither operation, applying basic
Floyd-Steinberg error-diffusion to the image.
|
java.awt.image.WritableRaster |
filter(java.awt.image.Raster pSource,
java.awt.image.WritableRaster pDest,
java.awt.image.IndexColorModel pColorModel)
Performs a single-input/single-output pixel copy operation.
|
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.BufferedImage pSrc)
Returns the bounding box of the filtered destination image.
|
java.awt.geom.Rectangle2D |
getBounds2D(java.awt.image.Raster pSrc)
Returns the bounding box of the filtered destination Raster.
|
java.awt.geom.Point2D |
getPoint2D(java.awt.geom.Point2D pSrcPt,
java.awt.geom.Point2D pDstPt)
Returns the location of the destination point given a
point in the source.
|
java.awt.RenderingHints |
getRenderingHints()
Returns the rendering mHints for this op.
|
public CopyDither(java.awt.image.IndexColorModel pICM)
CopyDither, using the given
IndexColorModel for dithering into.pICM - an IndexColorModel.public CopyDither()
CopyDither, with no fixed
IndexColorModel. The colormodel will be generated for each
filtering, unless the dest image allready has an
IndexColorModel.public final java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage pSource,
java.awt.image.ColorModel pDestCM)
BufferedImage to dither into.
Only IndexColorModel allowed.createCompatibleDestImage in interface java.awt.image.BufferedImageOpBufferedImageImageFilterException - if pDestCM is not null or
an instance of IndexColorModel.public final java.awt.image.WritableRaster createCompatibleDestRaster(java.awt.image.Raster pSrc)
Raster to dither into.
Only IndexColorModel allowed.createCompatibleDestRaster in interface java.awt.image.RasterOppSrc - WritableRasterpublic final java.awt.image.WritableRaster createCompatibleDestRaster(java.awt.image.Raster pSrc,
java.awt.image.IndexColorModel pIndexColorModel)
public final java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage pSrc)
getBounds2D in interface java.awt.image.BufferedImageOppSrc - the BufferedImage to be filteredpublic final java.awt.geom.Rectangle2D getBounds2D(java.awt.image.Raster pSrc)
getBounds2D in interface java.awt.image.RasterOppSrc - the Raster to be filteredRaster.public final java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D pSrcPt,
java.awt.geom.Point2D pDstPt)
dstPt is not
null, it will be used to hold the return value.
Since this is not a geometric operation, the srcPt
will equal the dstPt.getPoint2D in interface java.awt.image.BufferedImageOpgetPoint2D in interface java.awt.image.RasterOppSrcPt - a Point2D that represents a point
in the source imagepDstPt - a Point2Dthat represents the location
in the destinationPoint2D in the destination that
corresponds to the specified point in the source.public final java.awt.RenderingHints getRenderingHints()
getRenderingHints in interface java.awt.image.BufferedImageOpgetRenderingHints in interface java.awt.image.RasterOpRenderingHints object associated
with this op.public final java.awt.image.BufferedImage filter(java.awt.image.BufferedImage pSource,
java.awt.image.BufferedImage pDest)
filter in interface java.awt.image.BufferedImageOppSource - the source imagepDest - the destiantion imagepDest was
null.public final java.awt.image.WritableRaster filter(java.awt.image.Raster pSource,
java.awt.image.WritableRaster pDest)
filter in interface java.awt.image.RasterOppSource - pDest - pDest was
null.public final java.awt.image.WritableRaster filter(java.awt.image.Raster pSource,
java.awt.image.WritableRaster pDest,
java.awt.image.IndexColorModel pColorModel)
pSource - pDest - pColorModel - pDest was
null.Copyright © 2018. All Rights Reserved.