ColorMatrix postConcat - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for ColorMatrix postConcat method.

This code example shows how to use the following methods:postConcat, reset
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
            float deg = rad * 180 / 3.1415927f;
            int r = Color.red(color);
            int g = Color.green(color);
            int b = Color.blue(color);
 
            ColorMatrix cm = new ColorMatrix();
            ColorMatrix tmp = new ColorMatrix();
 
            cm.setRGB2YUV();
            tmp.setRotate(0, deg);
            cm.postConcat(tmp);
            tmp.setYUV2RGB();
            cm.postConcat(tmp);
 
            final float[] a = cm.getArray();
 
            int ir = floatToByte(a[0] * r +  a[1] * g +  a[2] * b);
            int ig = floatToByte(a[5] * r +  a[6] * g +  a[7] * b);
            int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
 
6
CodeRank
This code example shows how to use the following methods:postConcat, setSaturation
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
 
        int r = Color.red(color);
        int g = Color.green(color);
        int b = Color.blue(color);
 
        ColorMatrix cm = new ColorMatrix();
        ColorMatrix tmp = new ColorMatrix();
 
        cm.setRGB2YUV();
        tmp.setRotate(0, deg);
        cm.postConcat(tmp);
        tmp.setYUV2RGB();
        cm.postConcat(tmp);
 
        final float[] a = cm.getArray();
 
        int ir = Math.round(a[0] * r +  a[1] * g +  a[2] * b);
        int ig = Math.round(a[5] * r +  a[6] * g +  a[7] * b);
        int ib = Math.round(a[10] * r + a[11] * g + a[12] * b);
 
7
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
		float deg = rad * 180 / 3.1415927f;
		int r = Color.red(color);
		int g = Color.green(color);
		int b = Color.blue(color);
 
		ColorMatrix cm = new ColorMatrix();
		ColorMatrix tmp = new ColorMatrix();
 
		cm.setRGB2YUV();
		tmp.setRotate(0, deg);
		cm.postConcat(tmp);
		tmp.setYUV2RGB();
		cm.postConcat(tmp);
 
		final float[] a = cm.getArray();
 
		int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b);
		int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b);
		int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
 
6
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
            float deg = rad * 180 / 3.1415927f;
            int r = Color.red(color);
            int g = Color.green(color);
            int b = Color.blue(color);
             
            ColorMatrix cm = new ColorMatrix();
            ColorMatrix tmp = new ColorMatrix();
 
            cm.setRGB2YUV();
            tmp.setRotate(0, deg);
            cm.postConcat(tmp);
            tmp.setYUV2RGB();
            cm.postConcat(tmp);
             
            final float[] a = cm.getArray();
 
            int ir = floatToByte(a[0] * r +  a[1] * g +  a[2] * b);
            int ig = floatToByte(a[5] * r +  a[6] * g +  a[7] * b);
            int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
             
6
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
        float deg = rad * 180 / PI;
        int r = Color.red(color);
        int g = Color.green(color);
        int b = Color.blue(color);
         
        ColorMatrix cm  = new ColorMatrix();
        ColorMatrix tmp = new ColorMatrix();
 
        cm.setRGB2YUV();
        tmp.setRotate(0, deg);
        cm.postConcat(tmp);
        tmp.setYUV2RGB();
        cm.postConcat(tmp);
         
        final float[] a = cm.getArray();
 
        int ir = floatToByte(a[0] * r +  a[1] * g +  a[2] * b);
        int ig = floatToByte(a[5] * r +  a[6] * g +  a[7] * b);
        int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
         
6
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
            float deg = rad * 180 / 3.1415927f;
            int r = Color.red(color);
            int g = Color.green(color);
            int b = Color.blue(color);
 
            ColorMatrix cm = new ColorMatrix();
            ColorMatrix tmp = new ColorMatrix();
 
            cm.setRGB2YUV();
            tmp.setRotate(0, deg);
            cm.postConcat(tmp);
            tmp.setYUV2RGB();
            cm.postConcat(tmp);
 
            final float[] a = cm.getArray();
 
            int ir = floatToByte(a[0] * r + a[1] * g + a[2] * b);
            int ig = floatToByte(a[5] * r + a[6] * g + a[7] * b);
            int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
 
6
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
        float deg = rad * 180 / 3.1415927f;
        int r = Color.red(color);
        int g = Color.green(color);
        int b = Color.blue(color);
         
        ColorMatrix cm = new ColorMatrix();
        ColorMatrix tmp = new ColorMatrix();
 
        cm.setRGB2YUV();
        tmp.setRotate(0, deg);
        cm.postConcat(tmp);
        tmp.setYUV2RGB();
        cm.postConcat(tmp);
         
        final float[] a = cm.getArray();
 
        int ir = floatToByte(a[0] * r +  a[1] * g +  a[2] * b);
        int ig = floatToByte(a[5] * r +  a[6] * g +  a[7] * b);
        int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
         
6
CodeRank
This code example shows how to use the following methods:getArray, postConcat, setRGB2YUV
        float deg = rad * 180 / 3.1415927f;
        int r = Color.red(color);
        int g = Color.green(color);
        int b = Color.blue(color);
         
        ColorMatrix cm = new ColorMatrix();
        ColorMatrix tmp = new ColorMatrix();
 
        cm.setRGB2YUV();
        tmp.setRotate(0, deg);
        cm.postConcat(tmp);
        tmp.setYUV2RGB();
        cm.postConcat(tmp);
         
        final float[] a = cm.getArray();
 
        int ir = floatToByte(a[0] * r +  a[1] * g +  a[2] * b);
        int ig = floatToByte(a[5] * r +  a[6] * g +  a[7] * b);
        int ib = floatToByte(a[10] * r + a[11] * g + a[12] * b);
         
6
CodeRank

Related ColorMatrix postConcat Questions & Answers:

postConcat Method Overview
Concat this colormatrix with the specified postmatrix.
See Code Examples for other Android ColorMatrix Methods: