呵呵 那确实如楼上所述 用一个struct 图片用byte[]表示 结构如: public struct colormsg { public int textmsgLength;//文字信息长度 public string textmsg; //文字信息内容 public byte[] imageb; //byte[]保存的图片信息 }
你看看System.Drawing这个名称空间嘛
Image.FromStream Method Overloaded. Creates an Image from the specified data stream. Name Description Image.FromStream (Stream): Creates an Image from the specified data stream. Image.FromStream (Stream, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information in that stream.
Image.FromStream (Stream, Boolean, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information and validating the image data.
用一个struct
图片用byte[]表示
结构如:
public struct colormsg
{
public int textmsgLength;//文字信息长度
public string textmsg; //文字信息内容
public byte[] imageb; //byte[]保存的图片信息
}
Overloaded. Creates an Image from the specified data stream.
Name Description
Image.FromStream (Stream): Creates an Image from the specified data stream. Image.FromStream (Stream, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information in that stream.
Image.FromStream (Stream, Boolean, Boolean) : Creates an Image from the specified data stream, optionally using embedded color management information and validating the image data.