public class ConvolveMatrixRable8Bit extends AbstractColorInterpolationRable implements ConvolveMatrixRable
csLinear
props, srcs, stamp
Constructor and Description |
---|
ConvolveMatrixRable8Bit(Filter source) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc) |
void |
fixAlpha_FALLBACK(java.awt.image.WritableRaster wr) |
void |
fixAlpha_INT_PACK(java.awt.image.WritableRaster wr) |
void |
fixAlpha(java.awt.image.BufferedImage bi) |
double |
getBias()
Returns the shift value to apply to the result of convolution
|
PadMode |
getEdgeMode()
Returns the current edge handling mode.
|
java.awt.image.Kernel |
getKernel()
Returns the Convolution Kernel in use
|
double[] |
getKernelUnitLength()
Returns the [x,y] distance in user space between kernel values
|
boolean |
getPreserveAlpha()
Returns false if the convolution should affect the Alpha channel
|
Filter |
getSource()
Returns the source to be Convolved
|
java.awt.Point |
getTarget()
Returns the target point of the kernel (what pixel under the kernel
should be set to the result of convolution).
|
void |
setBias(double bias)
Returns the shift value to apply to the result of convolution
|
void |
setEdgeMode(PadMode edgeMode)
Sets the current edge handling mode.
|
void |
setKernel(java.awt.image.Kernel k)
Sets the Convolution Kernel to use.
|
void |
setKernelUnitLength(double[] kernelUnitLength)
Sets the [x,y] distance in user space between kernel values
If set to zero then device space will be used.
|
void |
setPreserveAlpha(boolean preserveAlpha)
Sets Alpha channel handling.
|
void |
setSource(Filter src)
Sets the source to be Convolved
|
void |
setTarget(java.awt.Point pt)
Sets the target point of the kernel (what pixel under the kernel
should be set to the result of the convolution).
|
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
public ConvolveMatrixRable8Bit(Filter source)
public Filter getSource()
ConvolveMatrixRable
getSource
in interface ConvolveMatrixRable
public void setSource(Filter src)
ConvolveMatrixRable
setSource
in interface ConvolveMatrixRable
src
- image to Convolved.public java.awt.image.Kernel getKernel()
getKernel
in interface ConvolveMatrixRable
public void setKernel(java.awt.image.Kernel k)
setKernel
in interface ConvolveMatrixRable
k
- Kernel to use for convolution.public java.awt.Point getTarget()
ConvolveMatrixRable
getTarget
in interface ConvolveMatrixRable
public void setTarget(java.awt.Point pt)
ConvolveMatrixRable
setTarget
in interface ConvolveMatrixRable
public double getBias()
getBias
in interface ConvolveMatrixRable
public void setBias(double bias)
setBias
in interface ConvolveMatrixRable
public PadMode getEdgeMode()
getEdgeMode
in interface ConvolveMatrixRable
public void setEdgeMode(PadMode edgeMode)
setEdgeMode
in interface ConvolveMatrixRable
public double[] getKernelUnitLength()
getKernelUnitLength
in interface ConvolveMatrixRable
public void setKernelUnitLength(double[] kernelUnitLength)
setKernelUnitLength
in interface ConvolveMatrixRable
public boolean getPreserveAlpha()
getPreserveAlpha
in interface ConvolveMatrixRable
public void setPreserveAlpha(boolean preserveAlpha)
setPreserveAlpha
in interface ConvolveMatrixRable
public void fixAlpha(java.awt.image.BufferedImage bi)
public void fixAlpha_INT_PACK(java.awt.image.WritableRaster wr)
public void fixAlpha_FALLBACK(java.awt.image.WritableRaster wr)
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering
in interface java.awt.image.renderable.RenderableImage
Copyright © 2022 Apache Software Foundation. All Rights Reserved.