Here you can find the source of toRGBA(int argb)
public static int toRGBA(int argb)
//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); } }