Java Integer Create toInt(final int r, final int g, final int b)

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

Description

to Int

License

Open Source License

Declaration

public static int toInt(final int r, final int g, final int b) 

Method Source Code

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

public class Main {
    public static final int DCM_ALPHA_MASK = 0xff000000;

    public static int toInt(final int r, final int g, final int b) {
        return DCM_ALPHA_MASK | (r << 16) | (g << 8) | b;
    }//from www .jav a  2 s  .  co  m
}

Related

  1. toInt(final byte[] data)
  2. toInt(final byte[] inputBytes, int offset)
  3. toInt(final byte[] pBytes)
  4. toInt(final Double value)
  5. toInt(final double[] a, final int len)
  6. toInt(final long a)
  7. toInt(final long n)
  8. toInt(final Object obj)
  9. toInt(final Object valueRep)