有没有实例提供一下.谢谢各位

解决方案 »

  1.   

    Bitmap Bmp = new Bitmap(pictureBox1.Image);
                Color C = Bmp.GetPixel(0, 0);
      

  2.   

    Bitmap Bmp = new Bitmap(pictureBox1.Image);
                Color C = Bmp.GetPixel(0, 0);
      

  3.   

    Bitmap.GetPixel(X,Y); 就可以了 最简单的办法:)
      

  4.   

    这个是最简单的Color=Bitmap.GetPixel(X,Y);
      

  5.   


    Bitmap box1 = new Bitmap(PictureBox1.Image)
    Color c = new Color();
    int rr, gg, bb;
    for(int i = 0; i< PictureBox1.Image.Width;i++)
    {
       for(int j=0;j<PictureBox1.Image.Height;j++)
       {
          c= box1.GetPixel(i,j);
          rr = c.R;
          bb = c.B;
          gg = C.G;
       }
    }