ColorMatrixColorFilter
public
class
ColorMatrixColorFilter
extends ColorFilter
| java.lang.Object | ||
| ↳ | android.graphics.ColorFilter | |
| ↳ | android.graphics.ColorMatrixColorFilter | |
A color filter that transforms colors through a 4x5 color matrix. This filter can be used to change the saturation of pixels, convert from YUV to RGB, etc.
See also:
Summary
Public constructors | |
|---|---|
ColorMatrixColorFilter(ColorMatrix matrix)
Create a color filter that transforms colors through a 4x5 color matrix. |
|
ColorMatrixColorFilter(float[] array)
Create a color filter that transforms colors through a 4x5 color matrix. |
|
Public methods | |
|---|---|
void
|
getColorMatrix(ColorMatrix colorMatrix)
Copies the ColorMatrix from the filter into the passed ColorMatrix. |
Inherited methods | |
|---|---|
android.graphics.ColorFilter
| |
java.lang.Object
| |
Public constructors
ColorMatrixColorFilter
ColorMatrixColorFilter (ColorMatrix matrix)
Create a color filter that transforms colors through a 4x5 color matrix.
| Parameters | |
|---|---|
matrix |
ColorMatrix: 4x5 matrix used to transform colors. It is copied into
the filter, so changes made to the matrix after the filter
is constructed will not be reflected in the filter.
This value must never be |
ColorMatrixColorFilter
ColorMatrixColorFilter (float[] array)
Create a color filter that transforms colors through a 4x5 color matrix.
| Parameters | |
|---|---|
array |
float: Array of floats used to transform colors, treated as a 4x5
matrix. The first 20 entries of the array are copied into
the filter. See ColorMatrix.
This value must never be |
Public methods
getColorMatrix
void getColorMatrix (ColorMatrix colorMatrix)
Copies the ColorMatrix from the filter into the passed ColorMatrix.
| Parameters | |
|---|---|
colorMatrix |
ColorMatrix: Set to the current value of the filter's ColorMatrix.
|
Interfaces
Classes
- Bitmap
- BitmapFactory
- BitmapFactory.Options
- BitmapRegionDecoder
- BitmapShader
- BlurMaskFilter
- Camera
- Canvas
- Color
- ColorFilter
- ColorMatrix
- ColorMatrixColorFilter
- ColorSpace
- ColorSpace.Connector
- ColorSpace.Rgb
- ColorSpace.Rgb.TransferParameters
- ComposePathEffect
- ComposeShader
- CornerPathEffect
- DashPathEffect
- DiscretePathEffect
- DrawFilter
- EmbossMaskFilter
- ImageFormat
- Interpolator
- LightingColorFilter
- LinearGradient
- MaskFilter
- Matrix
- Movie
- NinePatch
- Outline
- Paint
- Paint.FontMetrics
- Paint.FontMetricsInt
- PaintFlagsDrawFilter
- Path
- PathDashPathEffect
- PathEffect
- PathMeasure
- Picture
- PixelFormat
- Point
- PointF
- PorterDuff
- PorterDuffColorFilter
- PorterDuffXfermode
- RadialGradient
- Rect
- RectF
- Region
- RegionIterator
- Shader
- SumPathEffect
- SurfaceTexture
- SweepGradient
- Typeface
- Typeface.Builder
- Xfermode
- YuvImage
Enums
- Bitmap.CompressFormat
- Bitmap.Config
- BlurMaskFilter.Blur
- Canvas.EdgeType
- Canvas.VertexMode
- ColorSpace.Adaptation
- ColorSpace.Model
- ColorSpace.Named
- ColorSpace.RenderIntent
- Interpolator.Result
- Matrix.ScaleToFit
- Paint.Align
- Paint.Cap
- Paint.Join
- Paint.Style
- Path.Direction
- Path.FillType
- Path.Op
- PathDashPathEffect.Style
- PorterDuff.Mode
- Region.Op
- Shader.TileMode
Exceptions