如何在视觉工作室中为savefiledialog选择特定路径

时间:2016-05-15 22:58:57

标签: vba select path savefiledialog

当我保存图像时,我被困在如何为特定文件夹创建特定路径。我不知道从哪里开始或将路径放在命令中。 '我最近把System.windows.forms。 in并发现它仍然有用'

    Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click

    Dim savefiledialog1 As New SaveFileDialog

    Try

        savefiledialog1.FileName = "*.tif"

        savefiledialog1.Filter = "Tiff | *.tif"

        If savefiledialog1.ShowDialog() = System.Windows.Forms.DialogResult.OK Then

            PictureBox1.Image.Save(savefiledialog1.FileName, System.Drawing.Imaging.ImageFormat.Tiff)
        End If
    Catch ex As Exception

    End Try

End Sub

1 个答案:

答案 0 :(得分:0)

我认为这应该适用于以下代码:

import matplotlib.pyplot as plt
import matplotlib as mpl
%matplotlib inline 

print mpl.__version__
# Version : 1.5.1

br = (1.0,2.0,3.0)
brand = ('Ford','Audi','Wolskvagen')
count = (100,2000,10000)
plt.xticks((1,2,3),('Ford','Audi','Wolskvagen'))

plt.scatter(x = br,y = count,c = col,s=count)

print type(plt.xticks)
#<type 'function'>

plt.xticks = ((1,2,3),('Ford','Audi','Wolskvagen'))
print type(plt.xticks)
#<type 'tuple'>
#Now, I can't use xticks function any more...

更多:MSDN