Help with colors as bit values

BlitzMax Forums/BlitzMax Beginners Area/Help with colors as bit values

Ryan Burnside(Posted 2007) [#1]
My question deals with passing a desired RGBA as a function for writing to a pixmap. Is there anyone willing to explain how I would enter a RGBA value? I'm not familiar with how the values are added to create the bit values desired....

According to the manual:

Function WritePixel( pixmap:TPixmap,x,y,argb ) 
Description Write a pixel to a pixmap. 
Information The 32 bit argb value contains the following components:

bits 24-31 pixel alpha 
bits 16-23 pixel red 
bits 8-15 pixel green 
bits 0-7 pixel blue 
 



Jake L.(Posted 2007) [#2]
This might help