如何获取图片某一个点的颜色? C#

比如说我一个图片的大小是64 * 32 我想获得 (10,10) 这个点的颜色应该怎么弄? GetPixel

第1个回答  2015-08-10
  C# code
  Bitmap bmp = new Bitmap(pictureBox1.BackgroundImage);
Color color;
color = bmp.GetPixel(X, Y);
第2个回答  2013-10-23
Bimap myBitmap = new Bitmap( "Grapes.jpg "); // Get the color of a pixel within myBitmap. Color pixelColor = myBitmap.GetPixel(50, 50);
相似回答