View Single Post
Old 11-12-2007, 01:30 PM   #3 (permalink)
arul
Forum Expert
 
arul's Avatar
 
Join Date: Jan 2005
Location: Hic sunt leones ...
Age: 21
Posts: 1,287
Send a message via MSN to arul
Default

Quote:
Originally Posted by Marak View Post
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!
arul is offline   Reply With Quote