Method Image.Color.Color()->bits()


Method bits

int bits(object intrbits, object intgbits, object intbbits, object intrshift, object intgshift, object intbshift)

Description

Returns the color as an integer. The first three parameters state how many bits to use for red, green and blue respectively. The last three state how many bits each colour should be shifted. For instance, Image.Color("#AABBCC")->bits(8, 8, 8, 16, 8, 0) returns the integer 11189196, that is, 0xAABBCC.