Here you can find the source of toRGB(int red, int green, int blue)
public static int toRGB(int red, int green, int blue)
//package com.java2s; //License from project: Open Source License import java.awt.Color; public class Main { public static int toRGB(int red, int green, int blue) { return new Color(red, green, blue).getRGB(); }// ww w. ja va 2s.com }