List of usage examples for android.graphics ColorMatrix reset
public void reset()
[ 1 0 0 0 0 - red vector 0 1 0 0 0 - green vector 0 0 1 0 0 - blue vector 0 0 0 1 0 ] - alpha vector
From source file:java_lang_programming.com.android_media_demo.article80.ImageFragment.java
/** * /* w w w . j ava 2 s. c o m*/ */ private void grayScaleClear() { ColorMatrix matrix = new ColorMatrix(); matrix.reset(); ColorMatrixColorFilter filter = new ColorMatrixColorFilter(matrix); imageView.setColorFilter(filter); imageView.setImageResource(R.drawable.sample_20161204_180343); }