调整图片框大小并从图片框中删除图像 [英] Resizing picture box and Deleting Image from picture box

查看:71
本文介绍了调整图片框大小并从图片框中删除图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Windows应用程序.我有一个图片框.根据最终用户的喜好,图片框的大小可能会增加或减小.图像大小应与图片框大小相同.如何在运行时执行此操作以及如何从图片框中删除图片.有任何帮助吗?

解决方案

将SizeMode设置为Stretch,然后如果更改PictureBox的宽度和高度,则图像大小将与PictureBox Size相同.

谢谢.


i am developing a windows application.i have a picture box.according to end user preference picture box size may increase or decrease. image size should same as picture box size.how to do that at runtime and also how to delete image from picture box.can any one help?

解决方案

You have to set SizeMode as stretch and then if you change the width and height of PictureBox, the image size will be same as PictureBox Size.

Thanks.


这篇关于调整图片框大小并从图片框中删除图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆