public class ConvolveWithEdgeOp extends Object implements BufferedImageOp, RasterOp
ConvolveOp
Modifier and Type | Field and Description |
---|---|
static int |
EDGE_NO_OP
Alias for
ConvolveOp.EDGE_NO_OP . |
static int |
EDGE_REFLECT
Adds a border to the image while convolving.
|
static int |
EDGE_WRAP
Adds a border to the image while convolving.
|
static int |
EDGE_ZERO_FILL
Alias for
ConvolveOp.EDGE_ZERO_FILL . |
Constructor and Description |
---|
ConvolveWithEdgeOp(Kernel pKernel) |
ConvolveWithEdgeOp(Kernel pKernel,
int pEdgeCondition,
RenderingHints pHints) |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
createCompatibleDestImage(BufferedImage pSource,
ColorModel pDesinationColorModel) |
WritableRaster |
createCompatibleDestRaster(Raster pSource) |
BufferedImage |
filter(BufferedImage pSource,
BufferedImage pDestination) |
WritableRaster |
filter(Raster pSource,
WritableRaster pDestination) |
Rectangle2D |
getBounds2D(BufferedImage pSource) |
Rectangle2D |
getBounds2D(Raster pSource) |
int |
getEdgeCondition()
Returns the edge condition.
|
Kernel |
getKernel() |
Point2D |
getPoint2D(Point2D pSourcePoint,
Point2D pDestinationPoint) |
RenderingHints |
getRenderingHints() |
public static final int EDGE_ZERO_FILL
ConvolveOp.EDGE_ZERO_FILL
.EDGE_REFLECT
,
Constant Field Valuespublic static final int EDGE_NO_OP
ConvolveOp.EDGE_NO_OP
.EDGE_REFLECT
,
Constant Field Valuespublic static final int EDGE_REFLECT
EDGE_ZERO_FILL
and EDGE_NO_OP
, it does so
at the expense of higher memory consumption and considerable more computation.public static final int EDGE_WRAP
EDGE_ZERO_FILL
and EDGE_NO_OP
, it does so
at the expense of higher memory consumption and considerable more computation.EDGE_REFLECT
,
Constant Field Valuespublic ConvolveWithEdgeOp(Kernel pKernel, int pEdgeCondition, RenderingHints pHints)
public ConvolveWithEdgeOp(Kernel pKernel)
public BufferedImage filter(BufferedImage pSource, BufferedImage pDestination)
filter
in interface BufferedImageOp
public int getEdgeCondition()
ConvolveOp
.EDGE_NO_OP
,
EDGE_ZERO_FILL
,
EDGE_REFLECT
,
EDGE_WRAP
public WritableRaster filter(Raster pSource, WritableRaster pDestination)
public BufferedImage createCompatibleDestImage(BufferedImage pSource, ColorModel pDesinationColorModel)
createCompatibleDestImage
in interface BufferedImageOp
public WritableRaster createCompatibleDestRaster(Raster pSource)
createCompatibleDestRaster
in interface RasterOp
public Rectangle2D getBounds2D(BufferedImage pSource)
getBounds2D
in interface BufferedImageOp
public Rectangle2D getBounds2D(Raster pSource)
getBounds2D
in interface RasterOp
public Point2D getPoint2D(Point2D pSourcePoint, Point2D pDestinationPoint)
getPoint2D
in interface BufferedImageOp
getPoint2D
in interface RasterOp
public RenderingHints getRenderingHints()
getRenderingHints
in interface BufferedImageOp
getRenderingHints
in interface RasterOp
public Kernel getKernel()
Copyright © 2017. All rights reserved.