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

Class ColorMatrixRable8Bit

public class ColorMatrixRable8Bit extends AbstractColorInterpolationRable implements ColorMatrixRable

Implements the interface expected from a color matrix operation
Method Summary
static ColorMatrixRablebuildHueRotate(float a)
Builds a TYPE_HUE_ROTATE instance.
static ColorMatrixRablebuildLuminanceToAlpha()
Builds a TYPE_LUMINANCE_TO_ALPHA instance
static ColorMatrixRablebuildMatrix(float[][] matrix)
Builds a TYPE_MATRIX instance
static ColorMatrixRablebuildSaturate(float s)
Builds a TYPE_SATURATE instance
RenderedImagecreateRendering(RenderContext rc)
float[][]getMatrix()
Returns the rows of the color matrix.
FiltergetSource()
Returns the source of the blur operation
intgetType()
Returns the type of this color matrix.
voidsetSource(Filter src)
Sets the source of the blur operation

Method Detail

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

buildMatrix

public static ColorMatrixRable buildMatrix(float[][] matrix)
Builds a TYPE_MATRIX instance

buildSaturate

public static ColorMatrixRable buildSaturate(float s)
Builds a TYPE_SATURATE instance

createRendering

public RenderedImage createRendering(RenderContext rc)

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 of the blur operation

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 of the blur operation
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.