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对象。
The following code example demonstrates how to extract an icon from an embedded resource and convert it to a bitmap for display in every cell of an image column.
下面的代码示例演示如何从嵌入式资源提取图标并将其转换为位图以便在图像列的每个单元格中显示。
应用推荐