public class ColorMatrixColorFilter
extends ColorFilter
java.lang.Object | ||
↳ | android.graphics.ColorFilter | |
↳ | android.graphics.ColorMatrixColorFilter |
通过4x5颜色矩阵转换颜色的滤色器。 此滤镜可用于更改像素的饱和度,从YUV转换为RGB等。
也可以看看:
Public constructors |
|
---|---|
ColorMatrixColorFilter(ColorMatrix matrix) 创建一个颜色过滤器,通过4x5颜色矩阵转换颜色。 |
|
ColorMatrixColorFilter(float[] array) 创建一个颜色过滤器,通过4x5颜色矩阵转换颜色。 |
Inherited methods |
|
---|---|
![]() android.graphics.ColorFilter
|
|
![]() java.lang.Object
|
ColorMatrixColorFilter (ColorMatrix matrix)
创建一个颜色过滤器,通过4x5颜色矩阵转换颜色。
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. |
ColorMatrixColorFilter (float[] array)
创建一个颜色过滤器,通过4x5颜色矩阵转换颜色。
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. |