更新时间:2023-10-05 23:24:40
所以基本上你想从磁盘加载图像?
在这种情况下你需要路径到文件,无论是相对的还是绝对的。 (查看此处 [ ^ ])
使用该URI,您可以将正常图像(bmp,jpeg,gif,...)加载到图片框中。
查看图片 [ ^ ]类或位图 [ ^ ]类将图像加载到内存中。
最后你可以将图像附加到 PictureBox [ ^ ]控制。
希望这会有所帮助。
So basically you want to load an image from disk ?
In that case you need the path to the file, be it relative or absolute. (Check here[^])
With that URI you can load a normal image (bmp, jpeg, gif, ...) into the picture box.
Check the Image[^] class or the Bitmap[^] class to load the image in memory.
Finally you can attach the image to the PictureBox[^] control.
Hope this helps.