📄 form1.vb
字号:
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu
Friend WithEvents FileMenu As System.Windows.Forms.MenuItem
Friend WithEvents FileOpen As System.Windows.Forms.MenuItem
Friend WithEvents OpenFileDialog1 As System.Windows.Forms.OpenFileDialog
Friend WithEvents ProcessMenu As System.Windows.Forms.MenuItem
Friend WithEvents ProcessEmboss As System.Windows.Forms.MenuItem
Friend WithEvents ProcessSharpen As System.Windows.Forms.MenuItem
Friend WithEvents ProcessSmooth As System.Windows.Forms.MenuItem
Friend WithEvents ViewMenu As System.Windows.Forms.MenuItem
Friend WithEvents ViewNormal As System.Windows.Forms.MenuItem
Friend WithEvents ViewZoomIn As System.Windows.Forms.MenuItem
Friend WithEvents ViewZoomOut As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem1 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem2 As System.Windows.Forms.MenuItem
Friend WithEvents MenuItem4 As System.Windows.Forms.MenuItem
Friend WithEvents ProcessDiffuse As System.Windows.Forms.MenuItem
Friend WithEvents FlipH As System.Windows.Forms.MenuItem
Friend WithEvents FlipV As System.Windows.Forms.MenuItem
Friend WithEvents RotateLeft As System.Windows.Forms.MenuItem
Friend WithEvents RotateRight As System.Windows.Forms.MenuItem
Friend WithEvents RotateMenu As System.Windows.Forms.MenuItem
'Required by the Windows Form Designer
Private components As System.ComponentModel.Container
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.ViewNormal = New System.Windows.Forms.MenuItem()
Me.RotateLeft = New System.Windows.Forms.MenuItem()
Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog()
Me.FlipV = New System.Windows.Forms.MenuItem()
Me.ProcessMenu = New System.Windows.Forms.MenuItem()
Me.ProcessEmboss = New System.Windows.Forms.MenuItem()
Me.ProcessSharpen = New System.Windows.Forms.MenuItem()
Me.ProcessSmooth = New System.Windows.Forms.MenuItem()
Me.ProcessDiffuse = New System.Windows.Forms.MenuItem()
Me.ViewZoomIn = New System.Windows.Forms.MenuItem()
Me.RotateRight = New System.Windows.Forms.MenuItem()
Me.ViewMenu = New System.Windows.Forms.MenuItem()
Me.ViewZoomOut = New System.Windows.Forms.MenuItem()
Me.MenuItem1 = New System.Windows.Forms.MenuItem()
Me.MenuItem2 = New System.Windows.Forms.MenuItem()
Me.RotateMenu = New System.Windows.Forms.MenuItem()
Me.FlipH = New System.Windows.Forms.MenuItem()
Me.PictureBox1 = New System.Windows.Forms.PictureBox()
Me.FileMenu = New System.Windows.Forms.MenuItem()
Me.FileOpen = New System.Windows.Forms.MenuItem()
Me.MenuItem4 = New System.Windows.Forms.MenuItem()
Me.MainMenu1 = New System.Windows.Forms.MainMenu()
Me.SuspendLayout()
'
'ViewNormal
'
Me.ViewNormal.Index = 0
Me.ViewNormal.Text = "Normal"
'
'RotateLeft
'
Me.RotateLeft.Index = 0
Me.RotateLeft.Text = "Rotate Left"
'
'FlipV
'
Me.FlipV.Index = 3
Me.FlipV.Text = "Flip Vertical"
'
'ProcessMenu
'
Me.ProcessMenu.Index = 1
Me.ProcessMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.ProcessEmboss, Me.ProcessSharpen, Me.ProcessSmooth, Me.ProcessDiffuse})
Me.ProcessMenu.Text = "Process"
'
'ProcessEmboss
'
Me.ProcessEmboss.Index = 0
Me.ProcessEmboss.Text = "Emboss"
'
'ProcessSharpen
'
Me.ProcessSharpen.Index = 1
Me.ProcessSharpen.Text = "Sharpen"
'
'ProcessSmooth
'
Me.ProcessSmooth.Index = 2
Me.ProcessSmooth.Text = "Smooth"
'
'ProcessDiffuse
'
Me.ProcessDiffuse.Index = 3
Me.ProcessDiffuse.Text = "Diffuse"
'
'ViewZoomIn
'
Me.ViewZoomIn.Index = 1
Me.ViewZoomIn.Text = "Zoom In"
'
'RotateRight
'
Me.RotateRight.Index = 1
Me.RotateRight.Text = "Rotate Right"
'
'ViewMenu
'
Me.ViewMenu.Index = 3
Me.ViewMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.ViewNormal, Me.ViewZoomIn, Me.ViewZoomOut})
Me.ViewMenu.Text = "View"
'
'ViewZoomOut
'
Me.ViewZoomOut.Index = 2
Me.ViewZoomOut.Text = "Zoom Out"
'
'MenuItem1
'
Me.MenuItem1.Index = 1
Me.MenuItem1.Text = "Save As"
'
'MenuItem2
'
Me.MenuItem2.Index = 3
Me.MenuItem2.Text = "Exit"
'
'RotateMenu
'
Me.RotateMenu.Index = 2
Me.RotateMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.RotateLeft, Me.RotateRight, Me.FlipH, Me.FlipV})
Me.RotateMenu.Text = "Rotate"
'
'FlipH
'
Me.FlipH.Index = 2
Me.FlipH.Text = "Flip Horizontal"
'
'PictureBox1
'
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(624, 360)
Me.PictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage
Me.PictureBox1.TabIndex = 0
Me.PictureBox1.TabStop = False
'
'FileMenu
'
Me.FileMenu.Index = 0
Me.FileMenu.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileOpen, Me.MenuItem1, Me.MenuItem4, Me.MenuItem2})
Me.FileMenu.Text = "File"
'
'FileOpen
'
Me.FileOpen.Index = 0
Me.FileOpen.Text = "Open"
'
'MenuItem4
'
Me.MenuItem4.Index = 2
Me.MenuItem4.Text = "-"
'
'MainMenu1
'
Me.MainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.FileMenu, Me.ProcessMenu, Me.RotateMenu, Me.ViewMenu})
'
'Form1
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.AutoScroll = True
Me.ClientSize = New System.Drawing.Size(624, 377)
Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.PictureBox1})
Me.Menu = Me.MainMenu1
Me.Name = "Form1"
Me.Text = "Image Processing"
Me.ResumeLayout(False)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -