110,535
社区成员
发帖
与我相关
我的任务
分享
Bitmap bmp = new Bitmap(pic.Width,pic.Height);
pic.DrawToBitmap(bmp, new Rectangle(0, 0, pic.Width, pic.Height));
MemoryStream ms = new MemoryStream();
bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
byte[] byteImg = new Byte[ms.Length];
ms.Read(byteImg, 0, byteImg.Length);