Java RGB Color Convert To rgbaToColor(int r, int g, int b, int a)

Here you can find the source of rgbaToColor(int r, int g, int b, int a)

Description

rgba To Color

License

Open Source License

Declaration

public static int rgbaToColor(int r, int g, int b, int a) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static int rgbaToColor(int r, int g, int b, int a) {
        return ((a << 24) & 0xFF000000) | ((r << 16) & 0xFF0000) | ((g << 8) & 0xFF00) | (b & 0xFF);
    }/*w  w  w  .jav a2  s .c om*/
}

Related

  1. RGB2YCbCr(int[] rgb, float[][] Y, float[][] Cb, float[][] Cr, int imageWidth, int imageHeight)
  2. rgb2yuv(float r, float g, float b, float[] yuv)
  3. rgb565ToRGB(short pixel, byte[] rgb)
  4. rgb8ToPixel(byte[] nrgb)
  5. rgb8ToRgbRBXG(byte[] rgb)
  6. rgbaToHex(String color)
  7. RGBAtoI(byte r, byte g, byte b, byte a)
  8. rgbBitfieldToString(int rgb)
  9. rgbToBgr(final byte[] pixels)