Best code examples for Android ColorMatrix class (android.graphics.ColorMatrix)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ColorMatrix class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android ColorMatrix examples from Open Source projects
This code example shows how to use the following methods: setSaturation
88:	ColorMatrix cm = new ColorMatrix(); 
89:	cm.setSaturation(0.2f); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: postConcat, reset
36:	ColorMatrix allMatrix = new ColorMatrix(); 
37:	allMatrix.reset(); 
38:	allMatrix.postConcat(scaleMatrix); 
39:	allMatrix.postConcat(satMatrix); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: postConcat, setSaturation
311:	final ColorMatrix mColorMatrix = new ColorMatrix(); 
312:	mColorMatrix.setSaturation(0); 
-
315:	mColorMatrix.postConcat(mDarkMatrix); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
99:	ColorMatrix cm = new ColorMatrix(); 
-
102:	cm.setRGB2YUV(); 
-
104:	cm.postConcat(tmp); 
-
106:	cm.postConcat(tmp); 
-
108:	final float[] a = cm.getArray(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: set
64:	ColorMatrix cm = new ColorMatrix(); 
-
66:	cm.set(carray); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSaturation
20:	ColorMatrix colorMatrix = new ColorMatrix(); 
21:	colorMatrix.setSaturation(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
116:	paint.setColorFilter(new ColorMatrixColorFilter(new ColorMatrix())); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSaturation
88:	ColorMatrix cm = new ColorMatrix(); 
89:	cm.setSaturation(0.2f); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setSaturation
212:	ColorMatrix matrix = new ColorMatrix(); 
213:	matrix.setSaturation(0); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, setRGB2YUV
828:	ColorMatrix cm = new ColorMatrix(); 
829:	cm.setRGB2YUV(); 
830:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
159:	ColorMatrix cm = new ColorMatrix(); 
-
162:	cm.setRGB2YUV(); 
-
164:	cm.postConcat(tmp); 
-
166:	cm.postConcat(tmp); 
-
168:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
151:	ColorMatrix cm = new ColorMatrix(); 
-
154:	cm.setRGB2YUV(); 
-
156:	cm.postConcat(tmp); 
-
158:	cm.postConcat(tmp); 
-
160:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: set
72:	ColorMatrix matrix = new ColorMatrix(); 
-
75:	matrix.set(src); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
238:	ColorMatrix cm  = new ColorMatrix(); 
-
241:	cm.setRGB2YUV(); 
-
243:	cm.postConcat(tmp); 
-
245:	cm.postConcat(tmp); 
-
247:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
144:	mLightnessMatrix = new ColorMatrix(); 
-
164:	mLightnessMatrix.reset(); 
165:	mLightnessMatrix.setRotate(0, mLumValue); 
166:	mLightnessMatrix.setRotate(1, mLumValue); 
167:	mLightnessMatrix.setRotate(2, mLumValue); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSaturation
16:	colorMatrix = new ColorMatrix(); 
17:	colorMatrix.setSaturation(saturation); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
207:	mLightnessMatrix = new ColorMatrix(); // ÓÃÓÚÑÕÉ«±ä»»µÄ¾ØÕó£¬androidλͼÑÕÉ«±ä»¯´¦ÀíÖ÷ÒªÊÇ¿¿¸Ã¶ÔÏóÍê³É 
-
233:	mLightnessMatrix.reset(); // ÉèΪĬÈÏÖµ 
234:	mLightnessMatrix.setRotate(0, mLumValue); // ¿ØÖÆÈúìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
235:	mLightnessMatrix.setRotate(1, mLumValue); // ¿ØÖÆÈÃÂ̺ìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
236:	mLightnessMatrix.setRotate(2, mLumValue); // ¿ØÖÆÈÃÀ¶É«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
197:	ColorMatrix cm = new ColorMatrix(); 
-
200:	cm.setRGB2YUV(); 
-
202:	cm.postConcat(tmp); 
-
204:	cm.postConcat(tmp); 
-
206:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
209:	mLightnessMatrix = new ColorMatrix(); // ÓÃÓÚÑÕÉ«±ä»»µÄ¾ØÕó£¬androidλͼÑÕÉ«±ä»¯´¦ÀíÖ÷ÒªÊÇ¿¿¸Ã¶ÔÏóÍê³É 
-
235:	mLightnessMatrix.reset(); // ÉèΪĬÈÏÖµ 
236:	mLightnessMatrix.setRotate(0, mLumValue); // ¿ØÖÆÈúìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
237:	mLightnessMatrix.setRotate(1, mLumValue); // ¿ØÖÆÈÃÂ̺ìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
238:	mLightnessMatrix.setRotate(2, mLumValue); // ¿ØÖÆÈÃÀ¶É«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
208:	ColorMatrix cm  = new ColorMatrix(); 
-
211:	cm.setRGB2YUV(); 
-
213:	cm.postConcat(tmp); 
-
215:	cm.postConcat(tmp); 
-
217:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
203:	mLightnessMatrix = new ColorMatrix(); // 用于颜色变换的矩阵,android位图颜色变化处理主要是靠该对象完成 
-
235:	mLightnessMatrix.reset(); // 设为默认值 
236:	mLightnessMatrix.setRotate(0, mLightnessValue); // 控制让红色区在色轮上旋转hueColor葛角度 
237:	mLightnessMatrix.setRotate(1, mLightnessValue); // 控制让绿红色区在色轮上旋转hueColor葛角度 
238:	mLightnessMatrix.setRotate(2, mLightnessValue); // 控制让蓝色区在色轮上旋转hueColor葛角度 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
175:	ColorMatrix cm = new ColorMatrix(); 
-
178:	cm.setRGB2YUV(); 
-
180:	cm.postConcat(tmp); 
-
182:	cm.postConcat(tmp); 
-
184:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
204:	mLightnessMatrix = new ColorMatrix(); // 用于颜色变换的矩阵,android位图颜色变化处理主要是靠该对象完�? 
-
236:	mLightnessMatrix.reset(); // 设为默认�? 
237:	mLightnessMatrix.setRotate(0, mLightnessValue); // 控制让红色区在色轮上旋转hueColor葛角�? 
238:	mLightnessMatrix.setRotate(1, mLightnessValue); // 控制让绿红色区在色轮上旋转hueColor葛角�? 
239:	mLightnessMatrix.setRotate(2, mLightnessValue); // 控制让蓝色区在色轮上旋转hueColor葛角�? 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: reset, setRotate
213:	mLightnessMatrix = new ColorMatrix(); // ÓÃÓÚÑÕÉ«±ä»»µÄ¾ØÕó£¬androidλͼÑÕÉ«±ä»¯´¦ÀíÖ÷ÒªÊÇ¿¿¸Ã¶ÔÏóÍê³É 
-
239:	mLightnessMatrix.reset(); // ÉèΪĬÈÏÖµ 
240:	mLightnessMatrix.setRotate(0, mLumValue); // ¿ØÖÆÈúìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
241:	mLightnessMatrix.setRotate(1, mLumValue); // ¿ØÖÆÈÃÂ̺ìÉ«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
242:	mLightnessMatrix.setRotate(2, mLumValue); // ¿ØÖÆÈÃÀ¶É«ÇøÔÚÉ«ÂÖÉÏÐýתµÄ½Ç¶È 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: postConcat, setSaturation
67:	ColorMatrix greymatrix = new ColorMatrix(); 
68:	greymatrix.setSaturation(0); 
-
71:	greymatrix.postConcat(darkmatrix); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
132:	ColorMatrix cm = new ColorMatrix(); 
-
135:	cm.setRGB2YUV(); 
-
137:	cm.postConcat(tmp); 
-
139:	cm.postConcat(tmp); 
-
141:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
132:	ColorMatrix cm = new ColorMatrix(); 
-
135:	cm.setRGB2YUV(); 
-
137:	cm.postConcat(tmp); 
-
139:	cm.postConcat(tmp); 
-
141:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
134:	ColorMatrix cm = new ColorMatrix(); 
-
137:	cm.setRGB2YUV(); 
-
139:	cm.postConcat(tmp); 
-
141:	cm.postConcat(tmp); 
-
143:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: set, setSaturation
43:	ColorMatrix colorMatrix = new ColorMatrix(); 
44:	colorMatrix.setSaturation(0f); 
45:	colorMatrix.set(colorTransform); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
151:	ColorMatrix cm = new ColorMatrix(); 
-
154:	cm.setRGB2YUV(); 
-
156:	cm.postConcat(tmp); 
-
158:	cm.postConcat(tmp); 
-
160:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: set
28:	ColorMatrix cm = new ColorMatrix(); 
29:	cm.set(new float[] { 1, 0, 0, 0, b, 0, 1, 0, 0, b, 0, 0, 1, 0, b, 0, 0, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
149:	ColorMatrix cm = new ColorMatrix(); 
-
152:	cm.setRGB2YUV(); 
-
154:	cm.postConcat(tmp); 
-
156:	cm.postConcat(tmp); 
-
158:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setSaturation
250:	ColorMatrix cm = new ColorMatrix(); 
251:	cm.setSaturation(0.2f); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
160:	ColorMatrix cm = new ColorMatrix(); 
-
163:	cm.setRGB2YUV(); 
-
165:	cm.postConcat(tmp); 
-
167:	cm.postConcat(tmp); 
-
169:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
125:	ColorMatrix cm = new ColorMatrix(); 
-
128:	cm.setRGB2YUV(); 
-
130:	cm.postConcat(tmp); 
-
132:	cm.postConcat(tmp); 
-
134:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
125:	ColorMatrix cm = new ColorMatrix(); 
-
128:	cm.setRGB2YUV(); 
-
130:	cm.postConcat(tmp); 
-
132:	cm.postConcat(tmp); 
-
134:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
130:	ColorMatrix cm = new ColorMatrix(); 
-
133:	cm.setRGB2YUV(); 
-
135:	cm.postConcat(tmp); 
-
137:	cm.postConcat(tmp); 
-
139:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
124:	ColorMatrix cm = new ColorMatrix(); 
-
127:	cm.setRGB2YUV(); 
-
129:	cm.postConcat(tmp); 
-
131:	cm.postConcat(tmp); 
-
133:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
130:	ColorMatrix cm = new ColorMatrix(); 
-
133:	cm.setRGB2YUV(); 
-
135:	cm.postConcat(tmp); 
-
137:	cm.postConcat(tmp); 
-
139:	final float[] a = cm.getArray(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
134:	ColorMatrix cm = new ColorMatrix(); 
-
137:	cm.setRGB2YUV(); 
-
139:	cm.postConcat(tmp); 
-
141:	cm.postConcat(tmp); 
-
143:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
137:	ColorMatrix cm = new ColorMatrix(); 
-
140:	cm.setRGB2YUV(); 
-
142:	cm.postConcat(tmp); 
-
144:	cm.postConcat(tmp); 
-
146:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
136:	ColorMatrix cm = new ColorMatrix(); 
-
139:	cm.setRGB2YUV(); 
-
141:	cm.postConcat(tmp); 
-
143:	cm.postConcat(tmp); 
-
145:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
136:	ColorMatrix cm = new ColorMatrix(); 
-
139:	cm.setRGB2YUV(); 
-
141:	cm.postConcat(tmp); 
-
143:	cm.postConcat(tmp); 
-
145:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
136:	ColorMatrix cm = new ColorMatrix(); 
-
139:	cm.setRGB2YUV(); 
-
141:	cm.postConcat(tmp); 
-
143:	cm.postConcat(tmp); 
-
145:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
138:	ColorMatrix cm = new ColorMatrix(); 
-
141:	cm.setRGB2YUV(); 
-
143:	cm.postConcat(tmp); 
-
145:	cm.postConcat(tmp); 
-
147:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
149:	ColorMatrix cm = new ColorMatrix(); 
-
152:	cm.setRGB2YUV(); 
-
154:	cm.postConcat(tmp); 
-
156:	cm.postConcat(tmp); 
-
158:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
151:	ColorMatrix cm = new ColorMatrix(); 
-
154:	cm.setRGB2YUV(); 
-
156:	cm.postConcat(tmp); 
-
158:	cm.postConcat(tmp); 
-
160:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
174:	ColorMatrix cm = new ColorMatrix(); 
-
177:	cm.setRGB2YUV(); 
-
179:	cm.postConcat(tmp); 
-
181:	cm.postConcat(tmp); 
-
183:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
157:	ColorMatrix cm = new ColorMatrix(); 
-
160:	cm.setRGB2YUV(); 
-
162:	cm.postConcat(tmp); 
-
164:	cm.postConcat(tmp); 
-
166:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getArray, postConcat, setRGB2YUV
137:	ColorMatrix cm = new ColorMatrix(); 
-
140:	cm.setRGB2YUV(); 
-
142:	cm.postConcat(tmp); 
-
144:	cm.postConcat(tmp); 
-
146:	final float[] a = cm.getArray(); 
Full Snippet Info
5
CodeRank
Related Android ColorMatrix Questions & Answers:
See Code Examples for Android ColorMatrix Methods: