this.pb_backgroundImage.Image = System.Drawing.Image.FromFile("c:/image.jpg");this.pb_backgroundImage.BackgroundImageLayout = ImageLayout.Stretch; 以上是代碼,圖片能顯示不會(huì)拉伸,即代碼無效.在右邊的屬性框里添加項(xiàng)目圖片資源,然后BackgroundImageLayout屬性設(shè)置為Stretch,圖片能自動(dòng)拉伸.
winfrom picturebox 的背景圖標(biāo)設(shè)置為自動(dòng)拉伸無效
長風(fēng)秋雁
2018-11-21 11:17:08