我们如何在代码中将图像文件加载到图片框中? [英] How do we load an image file into a picturebox in code ?
本文介绍了我们如何在代码中将图像文件加载到图片框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将图像文件加载到PictureBox中,例如:
C:\ images \img1.jpg
但是在代码中?
Tia
CK
How do I load an image file , e.g.
C:\images\img1.jpg
into a PictureBox, but in code ?
Tia
C.K
推荐答案
*" C.K" < assdadad> scripsit:
* "C.K" <assdadad> scripsit:
如何将图像文件加载到PictureBox中,例如:\\ t> \ images.在代码?
How do I load an image file , e.g.
C:\images\img1.jpg
into a PictureBox, but in code ?
\\\
Me.PictureBox1.Image = Image.FromFile(" C:\ foo) .bmp")
///
-
MS Herfried K. Wagner
MVP< URL:http://dotnet.mvps.org/>
VB< URL:http://dotnet.mvps.org/dotnet/faqs/>
\\\
Me.PictureBox1.Image = Image.FromFile("C:\foo.bmp")
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
完整概述如何在图像框中设置图像
http://msdn.microsoft.com/library/de...imagetopic.asp
我希望这有帮助吗?
Cor
A complete overview how to set an image in a imagebox
http://msdn.microsoft.com/library/de...imagetopic.asp
I hope this helps?
Cor
PictureBox1.Image = Image.FromFile(" C:\ myFile。???)
-
OHM(特里伯恩斯)
。 。 。单手人。 。
如果你需要我的电子邮件,请问我
当你不知道自己在做什么时,过得很快
" C.K" < assdadad>写在消息
新闻:英国************** @ TK2MSFTNGP11.phx.gbl ...
PictureBox1.Image = Image.FromFile("C:\myFile.???")
--
OHM ( Terry Burns )
. . . One-Handed-Man . . .
If U Need My Email ,Ask Me
Time flies when you don''t know what you''re doing
"C.K" <assdadad> wrote in message
news:uK**************@TK2MSFTNGP11.phx.gbl...
如何加载图像文件,例如图片框中的C:\\\ images \ img1.jpg
是否在代码中?
Tia > CK
How do I load an image file , e.g.
C:\images\img1.jpg
into a PictureBox, but in code ?
Tia
C.K
这篇关于我们如何在代码中将图像文件加载到图片框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文