Sub vb6Color2B4A(Vb6Color As Int ) As Int
Dim rgb(3) As Int, r As Int
rgb(0) = Bit.UnsignedShiftRight(Bit.AND(vb6Color, 0xff0000), 16)
rgb(1) = Bit.UnsignedShiftRight(Bit.AND(vb6Color, 0xff00), 8)
rgb(2) = Bit.AND(vb6Color, 0xff)
r= Colors.RGB(rgb(2),rgb(1),rgb(0))
Return r
End Sub