VB中用image打开的图片文件怎样实现“另存为”
来源:百度知道 编辑:UC知道 时间:2024/05/09 18:45:51
在工程——部件,里面添加“Microsoft Common Dialog Control”控件
在工具箱里添加到窗体中。
在按钮里添加下面代码:
With CommonDialog1
.Filter = "BMP位图(*.bmp)|*.bmp"
.ShowSave
SavePicture Image1.Picture, .FileName
End With
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/05/09 18:45:51
在工程——部件,里面添加“Microsoft Common Dialog Control”控件
在工具箱里添加到窗体中。
在按钮里添加下面代码:
With CommonDialog1
.Filter = "BMP位图(*.bmp)|*.bmp"
.ShowSave
SavePicture Image1.Picture, .FileName
End With