static int argb ( double color ) { long value = Double . doubleToRawLongBits ( color ) ; int result = colorDigit ( ( ( value >>> 48 ) ) / 256.0 ) << 24 ; result |= colorDigit ( ( ( value >> 32 ) & 0xFFFF ) / 256.0 ) << 16 ; result |= colorDigit ( ( ( value >> 16 ) & 0xFFFF ) / 256.0 ) << 8 ; result |= colorDigit ( ( ( value ) & 0xFFFF ) / 256.0 ) ; return result ; }
Convert an color value as long into integer color value