Quote:
Originally Posted by Marak
Im trying to get the hue's to display in a selectable chart in Vb.net, but not having much luck at the moment, anyone able to point me into the right direction? (i have not done that much work with array's before - which is what im assuming you would use)
|
Code:
Public Shared Function GetColorFromHue(ByVal hue As Short) As Color
Return Color.FromArgb(((hue And &H7C00) >> 7), ((hue And &H3E0) >> 2), ((hue And &H1F) << 3))
End Function
__________________
Angels are falling the very last time, down they're burning in hate and decline, unfaithful and violent we're breaking the spell, we're god, we're scissor, in heaven and hell!
|