Invert Color
-
i want to invert a color..for example...inveret color.blue how can i do it?
-
i want to invert a color..for example...inveret color.blue how can i do it?
The inverse of blue is 0xFFFF00. To invert a colour you need to invert the red, green and blue components individually. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
The inverse of blue is 0xFFFF00. To invert a colour you need to invert the red, green and blue components individually. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
i was going to suggest that too, Christian. i couldnt figure out how, could you give some detail please? just out of curiousity thanks ------------------------ Jordan. III
To be honest, I don't use VB at all. If it's VB.NET, then you take the Color variable, and you say myColor.Red = 255-myColor.Red myColor.Green = 255-myColor.Green myColor.Blue = 255-myColor.Blue Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
To be honest, I don't use VB at all. If it's VB.NET, then you take the Color variable, and you say myColor.Red = 255-myColor.Red myColor.Green = 255-myColor.Green myColor.Blue = 255-myColor.Blue Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
-
i want to invert a color..for example...inveret color.blue how can i do it?
'Here is a color inverting code. hope this will help 'place a button and 3 textboxes ' then cut and paste this codes Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged, TextBox3.TextChanged Try Button1.BackColor = Color.FromArgb(TextBox1.Text, TextBox2.Text, TextBox3.Text) Catch End Try End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Try TextBox1.Text = 255 - TextBox1.Text TextBox2.Text = 255 - TextBox2.Text TextBox3.Text = 255 - TextBox3.Text Catch End Try End Sub :eek: Marvin N. Guerrero - did the chicken came first than the egg. it depends! uphill the chicken would be first, downhill the egg would simply roll.
-
i want to invert a color..for example...inveret color.blue how can i do it?
Thanx to all You Can see a code for getting R ,G ,B from a color and inverting a color in this address: http://www.vb-helper.com/index\_graphics.html#color XstoneheartX
-
i want to invert a color..for example...inveret color.blue how can i do it?
Best solution to my Question!
Public Function InvertColor(ByVal C As Color) As Color Return (Color.FromArgb(255 - C.R, 255 - C.G, 255 - C.B)) End Function