位图到Picturebox

时间:2014-03-11 13:36:41

标签: c# bitmap

此问题与This question有关。最后,用户执行类似

的操作
Bitmap bmp = (Bitmap)Bitmap.FromStream(new MemoryStream(buffer,0,total));

现在,我想在PictureBox中显示此图像。那么,应该在什么地方???以下

pictureBox1.Image = ???

1 个答案:

答案 0 :(得分:1)

pictureBox1.Image = bmp;

bmp是图像(Bitmap来自Image)所以你不需要做任何特别的事情。

相关问题