简体   繁体   中英

Bitmap to Picturebox

This question is related to This question . At the end, user does something like

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

Now, I want to display this image in PictureBox. So, what should be at the place of ??? below

pictureBox1.Image = ???

pictureBox1.Image = bmp;

该bmp是图像( Image Bitmap inhereits),因此您无需执行任何特殊操作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM