在使用GDI+中的Bitmap类时,经常使用LockBits函数来锁定一定区域,并读入内存进行操作。BitmapData类的Stride属性在MSND中的解释为:
   Offset, in bytes, between consecutive scan lines of the bitmap. If the stride is positive, the bitmap is top-down. If the stride is negative, the bitmap is bottom-up.但是我在使用的时候经常犯错误,我还是不怎么理解Scan0这个属性和Stride的关系,经常会出现内存不可读问题,还有就是有关是4的倍数问题,在这里谁能帮我解释一下,Scan0在内存中是怎么存储的,怎么来访问,访问时Stride的作用是什么?