int x, y;
x = e.X;
y = e.Y;
Color pixel = MyImage.GetPixel(x, y);
byte R = pixel.R;
byte G = pixel.G;
byte B = pixel.B;
pixel_R.Text = R.ToString();
pixel_G.Text = G.ToString();
pixel_B.Text = B.ToString();
int x, y;
x = e.X;
y = e.Y;
Color pixel = MyImage.GetPixel(x, y);
byte R = pixel.R;
byte G = pixel.G;
byte B = pixel.B;
pixel_R.Text = R.ToString();
pixel_G.Text = G.ToString();
pixel_B.Text = B.ToString();
转载于:https://www.cnblogs.com/MrMo/p/8287747.html