Java RGB Color Convert To RGBtoInt(int red, int green, int blue)

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

Description

RG Bto Int

License

LGPL

Declaration

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

Method Source Code

//package com.java2s;
/**/*  ww  w  .  j  a  va2 s.c o  m*/
 * @author Lerp
 * @license Lesser GNU Public License v3 http://www.gnu.org/licenses/lgpl.html
 */

public class Main {
    public static int RGBtoInt(int red, int green, int blue) {
        return 255 << 24 | red << 16 | +green << 8 | blue;
    }
}

Related

  1. RGBToHSV(int red, int green, int blue, float[] hsv)
  2. rgbToHsv(int rgb)
  3. RGBtoHTML(int rgb)
  4. RGBToInt(float[] rgb)
  5. RGBtoInt(int r, int g, int b)
  6. RGBtoInt(String rgb)
  7. RGBToInteger(int red, int green, int blue)
  8. rgbToShort(int rgb)
  9. rgbToString(float r, float g, float b)