title: Calculating rgb vals for BufferedImage
body: <p>I am using following snippet to build a 32 bit integer to use with setRGB of BufferedImage</p>
  
  <pre><code>
  (bit-or (bit-shift-left a 24)
            (bit-or (bit-shift-left r 16)
                (bit-or (bit-shift-left g 8) b)))
  </code></pre>
  
  <p>after writing colors reading them back reveals wrong colors is there a fault in my logic?</p>