Invert RBG into a color variable in vb.NET
-
I need to set new color variable which contains a specific color that I created... I got its R/B/G values, How can I make a color variable called x that contain it... and then If I have a button and I want 2 chnage its color I will use: Button1.backcolor=x Thank You Very much :confused:
-
I need to set new color variable which contains a specific color that I created... I got its R/B/G values, How can I make a color variable called x that contain it... and then If I have a button and I want 2 chnage its color I will use: Button1.backcolor=x Thank You Very much :confused:
ok , i didnt quite get what you write in the message. to create a color from rgb: Color c=Color.FromArgb(r,g,b); to invert a color: Color inv=Color.FromArgb(255-c.R,255-c.G,255-c.B); (ps , that was c# code , but i just assumed your usinng vb.net?) //Roger
-
ok , i didnt quite get what you write in the message. to create a color from rgb: Color c=Color.FromArgb(r,g,b); to invert a color: Color inv=Color.FromArgb(255-c.R,255-c.G,255-c.B); (ps , that was c# code , but i just assumed your usinng vb.net?) //Roger