Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public class

ColorMatrixColorFilter

extends ColorFilter
java.lang.Object
   ↳ android.graphics.ColorFilter
     ↳ android.graphics.ColorMatrixColorFilter

Summary

Public Constructors
ColorMatrixColorFilter ( ColorMatrix matrix)
Create a colorfilter that transforms colors through a 4x5 color matrix.
ColorMatrixColorFilter (float[] array)
Create a colorfilter that transforms colors through a 4x5 color matrix.
[Expand]
Inherited Methods
From class android.graphics.ColorFilter
From class java.lang.Object

Public Constructors

public ColorMatrixColorFilter ( ColorMatrix matrix)

Added in API level 1

Create a colorfilter that transforms colors through a 4x5 color matrix.

Parameters
matrix 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.

public ColorMatrixColorFilter (float[] array)

Added in API level 1

Create a colorfilter that transforms colors through a 4x5 color matrix.

Parameters
array 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.