Java Integer Create toInt(int[] rgb)

Here you can find the source of toInt(int[] rgb)

Description

to Int

License

Apache License

Declaration

public static int toInt(int[] rgb) 

Method Source Code

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

public class Main {
    public static int toInt(int[] rgb) {
        return toInt(rgb[0], rgb[1], rgb[2]);
    }//from  www .  ja  v a 2 s  .  co m

    public static int toInt(int r, int g, int b) {
        return toInt(255, r, g, b);
    }

    public static int toInt(int a, int r, int g, int b) {
        return (a << 24) | (r << 16) | (g << 8) | (b << 0);
    }
}

Related

  1. toInt(final String strPriority)
  2. toInt(final String text, final int defaultValue)
  3. toInt(final String value)
  4. toInt(float value)
  5. toInt(int byteSignificance, byte b)
  6. toInt(Integer i)
  7. toInt(Integer n)
  8. toInt(long l)
  9. toInt(long l)