private static int [ ] toRGBArray ( int pARGB , int [ ] pBuffer ) { pBuffer [ 0 ] = ( ( pARGB & 0x00ff0000 ) >> 16 ) ; pBuffer [ 1 ] = ( ( pARGB & 0x0000ff00 ) >> 8 ) ; pBuffer [ 2 ] = ( ( pARGB & 0x000000ff ) ) ; //pBuffer[3] = ((pARGB & 0xff000000) >> 24); // alpha return pBuffer ; }
Converts an int ARGB to int triplet .