Java RGB Color Create toRGBA(int argb)

Here you can find the source of toRGBA(int argb)

Description

Converts AARRGGBB to RRGGBBAA

License

Apache License

Declaration

public static int toRGBA(int argb) 

Method Source Code

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

public class Main {
    /**/*  w  ww. ja  va 2  s. com*/
     * Converts AARRGGBB to RRGGBBAA
     */
    public static int toRGBA(int argb) {
        return ((argb << 8) & 0xFFFFFF00) | ((argb >> 24) & 0xFF);
    }
}

Related

  1. toRGB(int color)
  2. toRgb(int r, int g, int b)
  3. toRGB(String hexString)
  4. toRGB15(int x)
  5. toRGBA(float[] colors)
  6. toRGBA(int color)
  7. toRGBA(String hexARGB)
  8. toRGBAArray(int colorBuffer)
  9. toRGBAIntArray(long argb)