¡@

Home 

2014/10/16 ¤W¤È 08:11:34

android Programming Glossary: cosval

Understanding the Use of ColorMatrix and ColorMatrixColorFilter to Modify a Drawable's Hue

http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw

value 180f 180f float Math.PI if value 0 return float cosVal float Math.cos value float sinVal float Math.sin value float.. lumG 0.715f float lumB 0.072f float mat new float lumR cosVal 1 lumR sinVal lumR lumG cosVal lumG sinVal lumG lumB cosVal.. float mat new float lumR cosVal 1 lumR sinVal lumR lumG cosVal lumG sinVal lumG lumB cosVal lumB sinVal 1 lumB 0 0 lumR cosVal..

Understanding the Use of ColorMatrix and ColorMatrixColorFilter to Modify a Drawable's Hue

http://stackoverflow.com/questions/4354939/understanding-the-use-of-colormatrix-and-colormatrixcolorfilter-to-modify-a-draw

void adjustHue ColorMatrix cm float value value cleanValue value 180f 180f float Math.PI if value 0 return float cosVal float Math.cos value float sinVal float Math.sin value float lumR 0.213f float lumG 0.715f float lumB 0.072f float mat new.. float sinVal float Math.sin value float lumR 0.213f float lumG 0.715f float lumB 0.072f float mat new float lumR cosVal 1 lumR sinVal lumR lumG cosVal lumG sinVal lumG lumB cosVal lumB sinVal 1 lumB 0 0 lumR cosVal lumR sinVal 0.143f lumG cosVal.. value float lumR 0.213f float lumG 0.715f float lumB 0.072f float mat new float lumR cosVal 1 lumR sinVal lumR lumG cosVal lumG sinVal lumG lumB cosVal lumB sinVal 1 lumB 0 0 lumR cosVal lumR sinVal 0.143f lumG cosVal 1 lumG sinVal 0.140f lumB..