Calculating rgb vals for BufferedImage
- by Hamza Yerlikaya
I am using following snippet to build a 32 bit integer to use with setRGB of BufferedImage
(bit-or (bit-shift-left a 24)
(bit-or (bit-shift-left r 16)
(bit-or (bit-shift-left g 8) b)))
after writing colors reading them back reveals wrong colors is there a fault in my logic?