Build 1.0_r1(from source)

android.graphics
Class ColorMatrixColorFilter

java.lang.Object
  extended by android.graphics.ColorFilter
      extended by android.graphics.ColorMatrixColorFilter

public class ColorMatrixColorFilter
extends ColorFilter


Field Summary
 
Fields inherited from class android.graphics.ColorFilter
native_instance
 
Constructor Summary
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.
 
Method Summary
 
Methods inherited from class android.graphics.ColorFilter
finalize
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorMatrixColorFilter

public ColorMatrixColorFilter(ColorMatrix matrix)
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.

ColorMatrixColorFilter

public ColorMatrixColorFilter(float[] array)
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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature