⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faddnoise.frm

📁 Visual Basic image processing. Mainly it occupies some filters to detect some prperties of image. Re
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmAddNoise 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Add Noise"
   ClientHeight    =   2310
   ClientLeft      =   4755
   ClientTop       =   2460
   ClientWidth     =   3420
   BeginProperty Font 
      Name            =   "Tahoma"
      Size            =   8.25
      Charset         =   0
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "fAddNoise.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2310
   ScaleWidth      =   3420
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "Cancel"
      Height          =   375
      Left            =   2160
      TabIndex        =   6
      Top             =   1920
      Width           =   1215
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "OK"
      Default         =   -1  'True
      Height          =   375
      Left            =   900
      TabIndex        =   5
      Top             =   1920
      Width           =   1215
   End
   Begin VB.Frame fraSep 
      Height          =   75
      Left            =   -300
      TabIndex        =   4
      Top             =   1800
      Width           =   4755
   End
   Begin VB.TextBox txtAmount 
      Height          =   315
      Left            =   1080
      TabIndex        =   3
      Text            =   "20"
      Top             =   780
      Width           =   1575
   End
   Begin VB.OptionButton optType 
      Caption         =   "&Random"
      Height          =   255
      Index           =   1
      Left            =   120
      TabIndex        =   1
      Top             =   420
      Width           =   2235
   End
   Begin VB.OptionButton optType 
      Caption         =   "&Uniform"
      Height          =   255
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Value           =   -1  'True
      Width           =   2235
   End
   Begin VB.Label lblAmount 
      Caption         =   "Percent:"
      Height          =   195
      Left            =   180
      TabIndex        =   2
      Top             =   840
      Width           =   855
   End
End
Attribute VB_Name = "frmAddNoise"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private m_bCancelled As Boolean
Private m_bRandom As Boolean
Private m_lPercent As Long

Public Property Get Cancelled() As Boolean
    Cancelled = m_bCancelled
End Property

Public Property Get Random() As Boolean
    Random = m_bRandom
End Property
Public Property Get Percentage() As Long
    Percentage = m_lPercent
End Property

Private Sub cmdOK_Click()
    m_lPercent = CLng(txtAmount.Text)
    m_bCancelled = False
    Unload Me
End Sub

Private Sub Form_Load()
    m_bCancelled = True
End Sub

Private Sub optType_Click(Index As Integer)
    m_bRandom = optType(1).Value
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -