Interface ColorMatrixRable
-
- All Superinterfaces:
Filter
,FilterColorInterpolation
,java.awt.image.renderable.RenderableImage
- All Known Implementing Classes:
ColorMatrixRable8Bit
public interface ColorMatrixRable extends FilterColorInterpolation
Defines the interface expected from a color matrix operation- Version:
- $Id: ColorMatrixRable.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description static int
TYPE_HUE_ROTATE
static int
TYPE_LUMINANCE_TO_ALPHA
static int
TYPE_MATRIX
Identifier used to refer to predefined matricesstatic int
TYPE_SATURATE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float[][]
getMatrix()
Returns the rows of the color matrix.Filter
getSource()
Returns the source to be offset.int
getType()
Returns the type of this color matrix.void
setSource(Filter src)
Sets the source to be offset.-
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
-
-
-
-
Field Detail
-
TYPE_MATRIX
static final int TYPE_MATRIX
Identifier used to refer to predefined matrices- See Also:
- Constant Field Values
-
TYPE_SATURATE
static final int TYPE_SATURATE
- See Also:
- Constant Field Values
-
TYPE_HUE_ROTATE
static final int TYPE_HUE_ROTATE
- See Also:
- Constant Field Values
-
TYPE_LUMINANCE_TO_ALPHA
static final int TYPE_LUMINANCE_TO_ALPHA
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
Filter getSource()
Returns the source to be offset.
-
setSource
void setSource(Filter src)
Sets the source to be offset.- Parameters:
src
- image to offset.
-
getType
int getType()
Returns the type of this color matrix.- Returns:
- one of TYPE_MATRIX, TYPE_SATURATE, TYPE_HUE_ROTATE, TYPE_LUMINANCE_TO_ALPHA
-
getMatrix
float[][] getMatrix()
Returns the rows of the color matrix. This uses the same convention as BandCombineOp.
-
-