Java RGB Color Create rgb(int pixel)

Here you can find the source of rgb(int pixel)

Description

rgb

License

Open Source License

Declaration

public static int[] rgb(int pixel) 

Method Source Code

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

public class Main {

    public static int[] rgb(int pixel) {
        int r = (pixel & 0xff0000) >> 16;
        int g = (pixel & 0xff00) >> 8;
        int b = (pixel & 0xff);
        int[] m = { r, g, b };
        return m;
    }/*from w ww . jav  a2s . c o  m*/
}

Related

  1. newRGBImage(int[] rgb, int width, int height, boolean processAlpha)
  2. RGB(float R, float G, float B)
  3. rgb(float rIn, float gIn, float bIn)
  4. rgb(int a, int r, int g, int b)
  5. rgb(int argb)
  6. rgb(int r, int g, int b)
  7. rgb(int red, int green, int blue)
  8. RGB_GREEN(int rgb)
  9. RGB_MSE(int[] rgb1, int[] rgb2)