BMP C#中的像素传播问题

时间:2011-05-19 13:35:48

标签: c#

  

可能重复:
  Exception on traveling through pixels BMP C#

我有BMP图像,并使用两个循环来访问其像素

for(int i=0;i<BMP.Width;i++){

   for(int j=0;BMP.Height;j++){

      color=BMP.GetPixel(i,j);     

   }

}

我的问题是使用上面的循环像素在底部图像中像第二个一样被渲染,但我需要的是第一个图像

enter image description here

这就是现在发生的事情

enter image description here

0 个答案:

没有答案