Java Color Combine combine(int r, int g, int b)

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

Description

combine

License

Open Source License

Declaration

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

Method Source Code

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

public class Main {
    public static int combine(int r, int g, int b) {
        int rgb = (r & 0xFF) << 16 | (g & 0xFF) << 8 | b & 0xFF;
        return rgb;
    }/* w w w.  j a  va2 s .  co m*/
}

Related

  1. combine(int r, int g, int b, int a)
  2. combineColors(int fgColor, int bgColor, int pctFg)