摘要:
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... 阅读全文