【发布时间】:2013-09-20 10:50:03
【问题描述】:
在我的项目中,我在用户之间使用套接字进行通信,我必须将图片框发送给另一个。
这是我如何使用图片框:
PictureBox pictureBox1 = new PictureBox();
ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named pictureBox1
pictureBox1.Image = img;
我使用我的套接字发送这样的:
byte[] buffer = Encoding.ASCII.GetBytes(textBox1.Text);
s.Send(buffer);
但我不知道如何发送图片框1。希望您能提供帮助,在此先感谢。
【问题讨论】:
标签: c# sockets picturebox