📄 huichart.frm
字号:
VERSION 5.00
Begin VB.Form Form5
BorderStyle = 1 'Fixed Single
Caption = "灰度直方图"
ClientHeight = 5730
ClientLeft = 2715
ClientTop = 1485
ClientWidth = 7230
LinkTopic = "Form5"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5730
ScaleWidth = 7230
Begin VB.Frame Frame4
Height = 615
Left = 5085
TabIndex = 8
Top = 4800
Width = 1935
Begin VB.CommandButton Command1
Caption = "显示"
Height = 300
Left = 120
TabIndex = 10
Top = 240
Width = 735
End
Begin VB.CommandButton Command2
Caption = "取 消"
Height = 300
Left = 1080
TabIndex = 9
Top = 240
Width = 735
End
End
Begin VB.Frame Frame3
Height = 615
Left = 5040
TabIndex = 5
Top = 1800
Width = 1935
Begin VB.TextBox Text1
Height = 270
Left = 1080
TabIndex = 6
Top = 240
Width = 660
End
Begin VB.Label Label1
Caption = "图象阈值:"
Height = 255
Left = 120
TabIndex = 7
Top = 270
Width = 855
End
End
Begin VB.Frame Frame2
Caption = "选择方法"
Height = 1335
Left = 5040
TabIndex = 2
Top = 240
Width = 1935
Begin VB.OptionButton Option2
Caption = "阈值计算方法二"
Height = 255
Left = 120
TabIndex = 4
Top = 720
Width = 1575
End
Begin VB.OptionButton Option1
Caption = "阈值计算方法一"
Height = 255
Left = 120
TabIndex = 3
Top = 360
Width = 1575
End
End
Begin VB.Frame Frame1
Caption = "直方图"
Height = 5175
Left = 165
TabIndex = 0
Top = 240
Width = 4455
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BackColor = &H0080C0FF&
Height = 4575
Left = 240
ScaleHeight = 301
ScaleMode = 3 'Pixel
ScaleWidth = 261
TabIndex = 1
Top = 360
Width = 3975
End
End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim WYu As Integer
If Option1.Value = True Then
WYu = WYuFuction1(WHuiArray)
End If
If Option2.Value = True Then
WYu = WYuFuction2(WHuiArray)
End If
Form5.Picture1.Line (WYu, Form5.Picture1.ScaleHeight)-(WYu, 0), vbGreen
Form5.Text1.Text = WYu
Form1.HuiTwoImage.Enabled = True
End Sub
Private Sub Command2_Click()
Form5.Picture1.Cls
Form5.Text1.Text = ""
Form5.Hide
WYu = 0
Form1.SetFocus
End Sub
Private Sub Option1_Click()
Option1.Value = True
Option2.Value = False
End Sub
Private Sub Option2_Click()
Option2.Value = True
Option1.Value = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -