How to show a fit size of jpg
-
If I have a jpg file like 1024*768, but my picturebox only has 800*600, How can I make the jpg file scale(zoom) to fix the picture box to show? Thank You!
A property SizeMode exists for the Picture box. Set the value to
StrechImage
Or do it through code like this:PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
Jesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:
-
A property SizeMode exists for the Picture box. Set the value to
StrechImage
Or do it through code like this:PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
Jesus Loves:rose:
--Owner Drawn:rose: --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord:rose:
-
If I have a jpg file like 1024*768, but my picturebox only has 800*600, How can I make the jpg file scale(zoom) to fix the picture box to show? Thank You!
Change the SizeMode property of PictureBox to StretchImage. PraVeeN NinethSense.com/blog/