From the microsoft website, I got something like this:
Code:
Dim Pict1 As Object
Pict1 = PictureBox1.Image
Dim PixelColor As Color = Pict1.GetPixel(e.X, e.Y)
lblColorName.Text = "&&H" & PixelColor.Name
lblTrueColorCode.Text = "&&H" & CStr(Hex$(PixelColor.ToArgb))
'RGB Red, Green, Blue
lblRGBAlpha.Text = CStr(PixelColor.A)
lblRGBRed.Text = CStr(PixelColor.R)
lblRGBGreen.Text = CStr(PixelColor.G)
lblRGBBlue.Text = CStr(PixelColor.B)
'HSB (Hue, Saturation, Brightness)
lblHSBAlpha.Text = CStr(PixelColor.A)
lblHSBHue.Text = CStr(PixelColor.GetHue)
lblHSBSaturation.Text = CStr(PixelColor.GetSaturation)
lblHSBBrightness.Text = CStr(PixelColor.GetBrightness)
lblColour.BackColor = PixelColor
End Sub
The problem is that I don't understand that. Where do you upload the picture (I heard it's using bitmap, getpixel, etc) and how do you tell the program to move your cursor to that picture.