ARGB Valuet back to R, G, and B value?

Blitz3D Forums/Blitz3D Programming/ARGB Valuet back to R, G, and B value?

ChrML(Posted 2003) [#1]
I know that to convert an R, G, and a B value to an ARGB integer value, I have to do:
argb=(b Or (g Shl 8) Or (r Shl 16) Or ($ff000000))


But what if I need the ARGB value back to seperate R, G, and B value?


Rob Farley(Posted 2003) [#2]
Code archives:
http://www.blitzbasic.com/codearcs/codearcs.php?code=551


ChrML(Posted 2003) [#3]
Thanks!