摘要:
改变:// 对比Color colorBefore = image.GetPixel(5, 5);BitmapData data = image.LockBits(new Rectangle(0, 0, image.Width, image.Height), ImageLockMode.WriteOnly, PixelFormat.Format8bppIndexed);// 将图像转化为byte数组byte[] bytes = newbyte[data.Height * data.Stride];Marshal.Copy(data.Scan0, bytes, 0, bytes.Length); 阅读全文