Java RGB Color Create rgb(int red, int green, int blue)

Here you can find the source of rgb(int red, int green, int blue)

Description

rgb

License

LGPL

Declaration

public static int rgb(int red, int green, int blue) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

public class Main {
    public static int rgb(int red, int green, int blue) {
        int color = 0;
        color |= 0xFF000000;//from w ww  . ja  v a 2 s .  com
        color |= (red & 0xFF) << 16;
        color |= (green & 0xFF) << 8;
        color |= blue & 0xFF;
        return color;
    }
}

Related

  1. rgb(float rIn, float gIn, float bIn)
  2. rgb(int a, int r, int g, int b)
  3. rgb(int argb)
  4. rgb(int pixel)
  5. rgb(int r, int g, int b)
  6. RGB_GREEN(int rgb)
  7. RGB_MSE(int[] rgb1, int[] rgb2)
  8. RGB_PNSR(int[] rgb1, int[] rgb2)
  9. rgb_xyz(double r)