Java RGB Color Create toRgb(int r, int g, int b)

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

Description

to Rgb

License

Open Source License

Declaration

public static int toRgb(int r, int g, int b) 

Method Source Code

//package com.java2s;

public class Main {
    public static int toRgb(int r, int g, int b) {
        return r << 16 | g << 8 | b;
    }//ww w .j  a v a 2s  .  co m
}

Related

  1. toRGB(byte r, byte g, byte b, byte a)
  2. toRGB(final int r, final int g, final int b, final int a)
  3. toRGB(float h, float s, float l)
  4. toRGB(int alpha, int red, int green, int blue)
  5. toRGB(int color)
  6. toRGB(String hexString)
  7. toRGB15(int x)
  8. toRGBA(float[] colors)
  9. toRGBA(int argb)