网络工程师考试报名时间:VB中用image打开的图片文件怎样实现“另存为”
来源:百度文库 编辑:中科新闻网 时间:2024/05/06 12:32:40
在工程——部件,里面添加“Microsoft Common Dialog Control”控件
在工具箱里添加到窗体中。
在按钮里添加下面代码:
With CommonDialog1
.Filter = "BMP位图(*.bmp)|*.bmp"
.ShowSave
SavePicture Image1.Picture, .FileName
End With