org.apache.batik.ext.awt.image.renderable

Interface ColorMatrixRable

public interface ColorMatrixRable extends FilterColorInterpolation

Defines the interface expected from a color matrix operation
Field Summary
intTYPE_HUE_ROTATE
intTYPE_LUMINANCE_TO_ALPHA
intTYPE_MATRIX
Identifier used to refer to predefined matrices
intTYPE_SATURATE
Method Summary
float[][]getMatrix()
Returns the rows of the color matrix.
FiltergetSource()
Returns the source to be offset.
intgetType()
Returns the type of this color matrix.
voidsetSource(Filter src)
Sets the source to be offset.

Field Detail

TYPE_HUE_ROTATE

public int TYPE_HUE_ROTATE

TYPE_LUMINANCE_TO_ALPHA

public int TYPE_LUMINANCE_TO_ALPHA

TYPE_MATRIX

public int TYPE_MATRIX
Identifier used to refer to predefined matrices

TYPE_SATURATE

public int TYPE_SATURATE

Method Detail

getMatrix

public float[][] getMatrix()
Returns the rows of the color matrix. This uses the same convention as BandCombineOp.

getSource

public Filter getSource()
Returns the source to be offset.

getType

public int getType()
Returns the type of this color matrix.

Returns: one of TYPE_MATRIX, TYPE_SATURATE, TYPE_HUE_ROTATE, TYPE_LUMINANCE_TO_ALPHA

setSource

public void setSource(Filter src)
Sets the source to be offset.

Parameters: src image to offset.

Copyright B) 2008 Apache Software Foundation. All Rights Reserved.