¡@

Home 

c# Programming Glossary: rgb.green

Algorithm to Switch Between RGB and HSB Color Values

http://stackoverflow.com/questions/4123998/algorithm-to-switch-between-rgb-and-hsb-color-values

As Double Dim h s b As Double h 0 minRGB Min Min rgb.Red rgb.Green rgb.Blue maxRGB Max Max rgb.Red rgb.Green rgb.Blue Delta maxRGB.. Min Min rgb.Red rgb.Green rgb.Blue maxRGB Max Max rgb.Red rgb.Green rgb.Blue Delta maxRGB minRGB b maxRGB If maxRGB 0 Then s 255.. Else s 0 End If If s 0 Then If rgb.Red maxRGB Then h CDbl rgb.Green CDbl rgb.Blue Delta Else If rgb.Green maxRGB Then h 2 CDbl..