FileDocCategorySizeDatePackage
ColorMatrixColorFilter.javaAPI DocAndroid 1.5 API1764Wed May 06 22:42:00 BST 2009android.graphics

ColorMatrixColorFilter

public class ColorMatrixColorFilter extends ColorFilter

Fields Summary
Constructors Summary
public ColorMatrixColorFilter(ColorMatrix matrix)
Create a colorfilter that transforms colors through a 4x5 color matrix.

param
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.

        native_instance = nativeColorMatrixFilter(matrix.getArray());
    
public ColorMatrixColorFilter(float[] array)
Create a colorfilter that transforms colors through a 4x5 color matrix.

param
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.

        if (array.length < 20) {
            throw new ArrayIndexOutOfBoundsException();
        }
        native_instance = nativeColorMatrixFilter(array);
    
Methods Summary
private static native intnativeColorMatrixFilter(float[] array)