Java RGB Color Convert To rgbToDecimal(int r, int g, int b)

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

Description

rgb To Decimal

License

Open Source License

Declaration

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

Method Source Code

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

public class Main {
    public static int rgbToDecimal(int r, int g, int b) {
        return b + 256 * g + 65536 * r;
    }/* w  w  w  .  j  a  va2 s  .  c om*/
}

Related

  1. rgbBitfieldToString(int rgb)
  2. rgbToBgr(final byte[] pixels)
  3. RGBtoBGR(String color)
  4. rgbToBlackWhite(int pix, int threshold)
  5. rgbToColor(int r, int g, int b)
  6. rgbToGray(int colorIn)
  7. rgbToGray(int pixels)
  8. RgbToGray(int r, int g, int b)
  9. rgbToGrey(byte[] rgb)