public final class ColorMatrixRable8Bit extends AbstractColorInterpolationRable implements ColorMatrixRable
csLinear
props, srcs, stamp
TYPE_HUE_ROTATE, TYPE_LUMINANCE_TO_ALPHA, TYPE_MATRIX, TYPE_SATURATE
Modifier and Type | Method and Description |
---|---|
static ColorMatrixRable |
buildHueRotate(float a)
Builds a TYPE_HUE_ROTATE instance.
|
static ColorMatrixRable |
buildLuminanceToAlpha()
Builds a TYPE_LUMINANCE_TO_ALPHA instance
|
static ColorMatrixRable |
buildMatrix(float[][] matrix)
Builds a TYPE_MATRIX instance
|
static ColorMatrixRable |
buildSaturate(float s)
Builds a TYPE_SATURATE instance
|
java.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 operation
|
int |
getType()
Returns the type of this color matrix.
|
void |
setSource(Filter src)
Sets the source of the blur operation
|
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 void setSource(Filter src)
setSource
in interface ColorMatrixRable
src
- image to offset.public Filter getSource()
getSource
in interface ColorMatrixRable
public int getType()
getType
in interface ColorMatrixRable
public float[][] getMatrix()
getMatrix
in interface ColorMatrixRable
public static ColorMatrixRable buildMatrix(float[][] matrix)
public static ColorMatrixRable buildSaturate(float s)
public static ColorMatrixRable buildHueRotate(float a)
a
- angle, in radianpublic static ColorMatrixRable buildLuminanceToAlpha()
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.