C# 获取每一个像素点的RGB

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();

posted on 2018-01-15 13:46  Mr_Mo  阅读(854)  评论(0编辑  收藏  举报

导航