You can observe that the strongly typed resource class automatically converts a.png file into an Image object that can be directly loaded into a PictureBox.
您可以看到,强类型资源类自动将.png文件转换为能够直接加载到PictureBox中的Image对象。
In the example, the code calls the Image.FromStream method to convert the stream containing the image file into an image object that can be loaded into a PictureBox control.
在该示例中,代码调用Image . FromStream方法将包含图像文件的流转换为可加载到PictureBox控件中的Image对象。
In the example, the code calls the Image.FromStream method to convert the stream containing the image file into an image object that can be loaded into a PictureBox control.
在该示例中,代码调用Image . FromStream方法将包含图像文件的流转换为可加载到PictureBox控件中的Image对象。
应用推荐