摘要: publicstaticBitmapKiMosaic(Bitmapb,intval){if(b.Equals(null)){returnnull;}intw=b.Width;inth=b.Height;intstdR,stdG,stdB;stdR=0;stdG=0;stdB=0;BitmapDatasrcData=b.LockBits(newRectangle(0,0,w,h),ImageLockMode.ReadWrite,PixelFormat.Format24bppRgb);unsafe{byte*p=(byte*)srcData.Scan0.ToPointer();for(int... 阅读全文
posted @ 2009-12-04 11:26 李久寧 阅读(579) 评论(0) 推荐(0) 编辑