摘要: public static unsafe byte[] ConvertTo8Byte(Bitmap img) { byte[] result = new byte[img.Width * img.Height]; int n = 0; BitmapData data = img.LockBits(new Rectangle(0, 0, img.Width, img.Height), ImageLockMode.ReadOnly, ... 阅读全文
posted @ 2013-08-15 23:19 louiskoo 阅读(3406) 评论(0) 推荐(1) 编辑
摘要: Bitmap bit = new Bitmap(renderImage.Width, renderImage.Height); using (Graphics g = Graphics.FromImage(bit)) { g.DrawImage(pictureBox1.Image, new Rectangle(0, 0, renderImage.Width, renderImage.Height), new Rectangle(0, 0, renderImage.Width, renderImage.Height), ... 阅读全文
posted @ 2013-08-15 23:18 louiskoo 阅读(7845) 评论(0) 推荐(0) 编辑