繁体   English   中英

PictureBox BackgroundImage属性C#

[英]PictureBox BackgroundImage Property C#

有人可以刷新一下我如何以编程方式设置图片框的背景图像吗?

非常感谢你!

PictureBox.Image

-更新

您需要一个图像对象。 您可以使用静态函数image.fromfile

PictureBox.Image = Image.FromFile(Path)

图片框同时具有ImageBackground Image属性

要设置Background Image您必须设置pictureBox1.BackgroundImage=your_Image;

对于Image属性pictureBox1.Image=your_Image;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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