摘要:
//需要引入的命名空间using System;using System.IO;using System.Drawing;using System.Runtime.Serialization.Formatters.Binary; //引入供序列化Image对象使用//以下为转换方法//将Image转换为byte[]public byte[] ConvertImage(Image image){FileStream fs=new FileStream("imagetemp",FileMode.Create,FileAccess.Write,FileShare.None);Bi 阅读全文