保存到VB .Net中的文件夹时,如何限制图像大小,高度和宽度? [英] How can I restrict image size, height and width when saving to a folder in VB .Net?

查看:74
本文介绍了保存到VB .Net中的文件夹时,如何限制图像大小,高度和宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个上传按钮,将图像保存到特定文件夹。在保存之前,我想检查图像的大小并将图像调整为特定大小。我还想将图像转换为.png格式。我怎么能这样做?

I'm trying to create an upload button that will save an image to a specific folder. Before saving, I want to check the size of the image and resize the image to a specific size. I would also want to convert the image to a .png format. How can I do this?

推荐答案

这篇关于保存到VB .Net中的文件夹时,如何限制图像大小,高度和宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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