Assume:
0. you have WinForm, 'FrmViewColors
1. you have a PictureBox on a Form with its 'Image property set, 'pbxViewColors
2. you have a Label on the Form, 'lblColor
3. you create an EventHandler for the MouseMove Event of the PictureBox
private Bitmap bmp;
private void FrmViewColors_Load(object sender, EventArgs e)
{
bmp =
}
private void pbxViewColors_MouseMove(object sender, MouseEventArgs e)
{
Color clr = bmp.GetPixel(e.X, e.Y);
lblColor.Text =
}