Java RGB Color Convert To rgb2int(final int[] color)

Here you can find the source of rgb2int(final int[] color)

Description

rgbint

License

Apache License

Declaration

public static int rgb2int(final int[] color) 

Method Source Code

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

public class Main {
    public static int rgb2int(final int red, final int green, final int blue) {
        return (red << 16) + (green << 8) + blue;
    }//from  w w  w .  j  a  v  a 2 s. c  om

    public static int rgb2int(final int[] color) {
        return (color[0] << 16) + (color[1] << 8) + color[2];
    }
}

Related

  1. rgb2hex(int[] rgb)
  2. rgb2hsl(int colour)
  3. RGB2HSL(int red, int green, int blue, float[] hslvals)
  4. rgb2hsl(int[] rgb)
  5. rgb2hsv(int r, int g, int b)
  6. rgb2intval(int r, int g, int b)
  7. rgb2lab(int R, int G, int B)
  8. rgb2luv(double[] rgb, double[] luv)
  9. rgb2xyz(double[] RGB)