调整图像大小以适应图片框 [英] Resize image to fit in picturebox
本文介绍了调整图像大小以适应图片框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好..
如何调整图像大小以适应vb.net中的PictureBox
plz建议我..
感谢你
hello everyone..
How can i resize a image to fit it to PictureBox in vb.net
plz suggest me..
Thanking You
推荐答案
在图片框的 BackgroundImage 属性中设置图片
然后设置图片框的 BackgroundImageLayout = stretch
因此Image将自动适合图片框的大小。
Happy Coding!
:)
set image in BackgroundImage property of picture-box
then set picture-box's BackgroundImageLayout = stretch
thus Image will auto fit to size of picture-box.
Happy Coding!
:)
您需要调整图片框高度和图像的大小。宽度。
非常简单。
创建一个新的大小图片框高度和位图的位图宽度。使用现有图像填写新位图。
有一篇很好的文章描述了它。
使用.NET动态调整图像大小
You need to resize the image for the picture box height & width.
Its pretty straight forward.
Create a new Bitmap of size picture box height & width. Fill-in the new bitmap with the existing image.
There is a nice article which describes it.
Resizing an Image On-The-Fly using .NET
hii ,,
类似的帖子会帮助你
http://www.dotnet-snippets.com/dns/vbnet- resize-image-to-fit-in-picturebox-SID213.aspx [ ^ ]
hii,,
similar thread will help you
http://www.dotnet-snippets.com/dns/vbnet-resize-image-to-fit-in-picturebox-SID213.aspx[^]
这篇关于调整图像大小以适应图片框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文