picturebox 图片自适应

picturebox控件共有两种载入图片方式,分别为:

pictureBox1.BackgroundImage = Image,pictureBox1.load(url)

为使加载的图片自使用控件尺寸,可以分别对pictureBox控件设置BackGroundImageLayout=Stretch,SizeMode=StretchImage

posted @ 2016-03-31 17:25  龙骑科技  阅读(2310)  评论(0编辑  收藏  举报