Class ColorMatrixRable8Bit
- java.lang.Object
-
- org.apache.batik.ext.awt.image.renderable.AbstractRable
-
- org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
-
- org.apache.batik.ext.awt.image.renderable.ColorMatrixRable8Bit
-
- All Implemented Interfaces:
java.awt.image.renderable.RenderableImage
,ColorMatrixRable
,Filter
,FilterColorInterpolation
public final class ColorMatrixRable8Bit extends AbstractColorInterpolationRable implements ColorMatrixRable
Implements the interface expected from a color matrix operation
-
-
Field Summary
-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinear
-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
-
Fields inherited from interface org.apache.batik.ext.awt.image.renderable.ColorMatrixRable
TYPE_HUE_ROTATE, TYPE_LUMINANCE_TO_ALPHA, TYPE_MATRIX, TYPE_SATURATE
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorMatrixRable
buildHueRotate(float a)
Builds a TYPE_HUE_ROTATE instance.static ColorMatrixRable
buildLuminanceToAlpha()
Builds a TYPE_LUMINANCE_TO_ALPHA instancestatic ColorMatrixRable
buildMatrix(float[][] matrix)
Builds a TYPE_MATRIX instancestatic ColorMatrixRable
buildSaturate(float s)
Builds a TYPE_SATURATE instancejava.awt.image.RenderedImage
createRendering(java.awt.image.renderable.RenderContext rc)
float[][]
getMatrix()
Returns the rows of the color matrix.Filter
getSource()
Returns the source of the blur operationint
getType()
Returns the type of this color matrix.void
setSource(Filter src)
Sets the source of the blur operation-
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
-
-
-
Method Detail
-
setSource
public void setSource(Filter src)
Sets the source of the blur operation- Specified by:
setSource
in interfaceColorMatrixRable
- Parameters:
src
- image to offset.
-
getSource
public Filter getSource()
Returns the source of the blur operation- Specified by:
getSource
in interfaceColorMatrixRable
-
getType
public int getType()
Returns the type of this color matrix.- Specified by:
getType
in interfaceColorMatrixRable
- Returns:
- one of TYPE_MATRIX, TYPE_SATURATE, TYPE_HUE_ROTATE, TYPE_LUMINANCE_TO_ALPHA
-
getMatrix
public float[][] getMatrix()
Returns the rows of the color matrix. This uses the same convention as BandCombineOp.- Specified by:
getMatrix
in interfaceColorMatrixRable
-
buildMatrix
public static ColorMatrixRable buildMatrix(float[][] matrix)
Builds a TYPE_MATRIX instance
-
buildSaturate
public static ColorMatrixRable buildSaturate(float s)
Builds a TYPE_SATURATE instance
-
buildHueRotate
public static ColorMatrixRable buildHueRotate(float a)
Builds a TYPE_HUE_ROTATE instance.- Parameters:
a
- angle, in radian
-
buildLuminanceToAlpha
public static ColorMatrixRable buildLuminanceToAlpha()
Builds a TYPE_LUMINANCE_TO_ALPHA instance
-
createRendering
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
- Specified by:
createRendering
in interfacejava.awt.image.renderable.RenderableImage
-
-