name22

RGB to ARGB

Apr 21st, 2012
130
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $iRGB = 0x00FFFF
  2. $iAlpha = 0xFF
  3.  
  4. $iARGB = BitShift($iAlpha, -24) + $iRGB
  5. MsgBox(64, "ARGB", "0x" & Hex($iARGB, 8))
RAW Paste Data