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

📄 frmoptions.frm

📁 北京微视公司图像采集卡SDK开发包
💻 FRM
📖 第 1 页 / 共 4 页
字号:
            Caption         =   "水平总点数:"
            Height          =   255
            Left            =   240
            TabIndex        =   41
            Top             =   1320
            Width           =   1455
         End
         Begin VB.Label Label7 
            Caption         =   "垂直起始位置:"
            Height          =   255
            Left            =   240
            TabIndex        =   40
            Top             =   900
            Width           =   1335
         End
         Begin VB.Label Label6 
            Caption         =   "水平起始位置:"
            Height          =   255
            Left            =   240
            TabIndex        =   39
            Top             =   480
            Width           =   1335
         End
      End
      Begin VB.Frame DspWndSize 
         Caption         =   "显示窗口大小(单位:像素)"
         Height          =   1380
         Left            =   2760
         TabIndex        =   32
         Top             =   120
         Width           =   2775
         Begin VB.TextBox DspHght 
            Height          =   285
            Left            =   1800
            TabIndex        =   36
            Top             =   720
            Width           =   615
         End
         Begin VB.TextBox DspWdth 
            Height          =   285
            Left            =   1800
            TabIndex        =   34
            Top             =   360
            Width           =   615
         End
         Begin VB.Label Label5 
            Caption         =   "显示窗口高度:"
            Height          =   255
            Left            =   240
            TabIndex        =   35
            Top             =   720
            Width           =   1335
         End
         Begin VB.Label Label4 
            Caption         =   "显示窗口宽度:"
            Height          =   255
            Left            =   240
            TabIndex        =   33
            Top             =   360
            Width           =   1335
         End
      End
      Begin VB.Frame CptPctSize 
         Caption         =   "采集图像大小(单位:像素)"
         Height          =   1380
         Left            =   120
         TabIndex        =   8
         Top             =   120
         Width           =   2535
         Begin VB.TextBox CptHght 
            Height          =   285
            Left            =   1680
            TabIndex        =   31
            Top             =   720
            Width           =   615
         End
         Begin VB.TextBox CptWdth 
            Height          =   285
            Left            =   1680
            TabIndex        =   29
            Top             =   360
            Width           =   615
         End
         Begin VB.Label Label3 
            Caption         =   "采集图像高度:"
            Height          =   255
            Left            =   240
            TabIndex        =   30
            Top             =   720
            Width           =   1335
         End
         Begin VB.Label Label2 
            Caption         =   "采集图像宽度:"
            Height          =   255
            Left            =   240
            TabIndex        =   28
            Top             =   360
            Width           =   1335
         End
      End
      Begin VB.Label Note 
         ForeColor       =   &H8000000D&
         Height          =   375
         Left            =   120
         TabIndex        =   37
         Top             =   1560
         Width           =   5415
      End
   End
   Begin VB.PictureBox picOptions 
      BorderStyle     =   0  'None
      Height          =   4020
      Index           =   0
      Left            =   240
      ScaleHeight     =   4020
      ScaleWidth      =   5685
      TabIndex        =   3
      TabStop         =   0   'False
      Top             =   480
      Width           =   5685
      Begin VB.ComboBox CardList 
         Height          =   300
         ItemData        =   "frmOptions.frx":0000
         Left            =   1680
         List            =   "frmOptions.frx":0002
         TabIndex        =   91
         Top             =   360
         Width           =   1935
      End
      Begin VB.CheckBox FlipCh 
         Caption         =   "水平翻转"
         Height          =   255
         Left            =   4200
         TabIndex        =   27
         Top             =   240
         Width           =   1095
      End
      Begin VB.CheckBox UpdwonCh 
         Caption         =   "顶底倒置"
         Height          =   255
         Left            =   4200
         TabIndex        =   26
         Top             =   600
         Width           =   1095
      End
      Begin VB.Frame SKIPFr 
         Caption         =   "采集方式"
         Height          =   1215
         Left            =   3600
         TabIndex        =   23
         Top             =   2520
         Width           =   1695
         Begin VB.OptionButton OnField 
            Caption         =   "按场采集"
            Height          =   255
            Left            =   120
            TabIndex        =   25
            Top             =   720
            Width           =   1335
         End
         Begin VB.OptionButton OnFrame 
            Caption         =   "按帧采集"
            Height          =   195
            Left            =   120
            TabIndex        =   24
            Top             =   360
            Width           =   1095
         End
      End
      Begin VB.Frame MemFmtFr 
         Caption         =   "显示方式"
         Height          =   2655
         Left            =   1680
         TabIndex        =   19
         Top             =   1080
         Width           =   1695
         Begin VB.OptionButton DirectShow 
            Caption         =   "直接显存方式"
            Height          =   195
            Left            =   120
            TabIndex        =   22
            Top             =   2040
            Width           =   1455
         End
         Begin VB.OptionButton GDI 
            Caption         =   "GDI方式"
            Height          =   195
            Left            =   120
            TabIndex        =   21
            Top             =   1200
            Width           =   1095
         End
         Begin VB.OptionButton DirectX 
            Caption         =   "DirectX方式"
            Height          =   195
            Left            =   120
            TabIndex        =   20
            Top             =   360
            Width           =   1335
         End
      End
      Begin VB.Frame ChannelFr 
         Caption         =   "通道选择"
         Height          =   2655
         Left            =   120
         TabIndex        =   14
         Top             =   1080
         Width           =   1335
         Begin VB.OptionButton Channel4 
            Caption         =   "通道4"
            Height          =   255
            Left            =   120
            TabIndex        =   18
            Top             =   2040
            Width           =   855
         End
         Begin VB.OptionButton Channel3 
            Caption         =   "通道3"
            Height          =   255
            Left            =   120
            TabIndex        =   17
            Top             =   1480
            Width           =   855
         End
         Begin VB.OptionButton Channel2 
            Caption         =   "通道2"
            Height          =   255
            Left            =   120
            TabIndex        =   16
            Top             =   920
            Width           =   855
         End
         Begin VB.OptionButton Channel1 
            Caption         =   "通道1"
            Height          =   255
            Left            =   120
            TabIndex        =   15
            Top             =   360
            Width           =   855
         End
      End
      Begin VB.TextBox BoardNo 
         BackColor       =   &H80000000&
         BorderStyle     =   0  'None
         BeginProperty DataFormat 
            Type            =   1
            Format          =   "0"
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   1
         EndProperty
         Enabled         =   0   'False
         Height          =   285
         Left            =   1200
         MaxLength       =   1
         ScrollBars      =   2  'Vertical
         TabIndex        =   11
         Top             =   360
         Width           =   255
      End
      Begin VB.Frame StandardFr 
         Caption         =   "制式选择"
         Height          =   1095
         Left            =   3600
         TabIndex        =   4
         Top             =   1080
         Width           =   1695
         Begin VB.OptionButton NTSC 
            Caption         =   "NTSC制式"
            Height          =   255
            Left            =   120
            TabIndex        =   13
            Top             =   720
            Width           =   1095
         End
         Begin VB.OptionButton PAL 
            Caption         =   "PAL制式"
            Height          =   255
            Left            =   120
            TabIndex        =   12
            Top             =   360
            Width           =   975
         End
      End
      Begin VB.Label Label1 
         Caption         =   "板卡总数:"
         Height          =   255
         Left            =   120
         TabIndex        =   89
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.CommandButton cmdApply 
      Caption         =   "应用"
      Height          =   375
      Left            =   3720
      TabIndex        =   2
      Top             =   4680
      Width           =   1095
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Height          =   375
      Left            =   2520
      TabIndex        =   1
      Top             =   4680
      Width           =   1095
   End
   Begin MSComctlLib.TabStrip SetParametor 
      Height          =   4485
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   5895
      _ExtentX        =   10398
      _ExtentY        =   7911
      MultiRow        =   -1  'True
      _Version        =   393216
      BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628} 
         NumTabs         =   4
         BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "视频参数"
            Key             =   "Group1"
            Object.ToolTipText     =   "设置视频制式、通道、显示模式等"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab2 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "图像大小及颜色"
            Key             =   "Group2"
            Object.ToolTipText     =   "设置视频图像的大小及颜色"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab3 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "图像存储"
            Key             =   "Group3"
            Object.ToolTipText     =   "设置图像采集及存储的相关参数"
            ImageVarType    =   2
         EndProperty
         BeginProperty Tab4 {1EFB659A-857C-11D1-B16A-00C0F0283628} 
            Caption         =   "区域信息"
            Key             =   "Group4"
            Object.ToolTipText     =   "找出区域内各种颜色的最值"
            ImageVarType    =   2
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
End
Attribute VB_Name = "frmOptions"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Blue_Click()
    BrtSld.Value = MV_GetDeviceParameter(hDevice, ADJUST_B_LUM)        '获得蓝路亮度值
    CtrstSld.Value = MV_GetDeviceParameter(hDevice, ADJUST_B_COARSE)   '获得蓝路对比度值
End Sub

Private Sub Bmp_Click()
    
    Monochrome.Enabled = False
    Colorful.Enabled = False
    JpgQult.Enabled = False
    Check1.Enabled = True

    If Check1.Value = 1 Then
        RGB15.Enabled = True
        RGB16.Enabled = True
    Else
        RGB15.Enabled = False
        RGB16.Enabled = False
    End If
    
End Sub

Private Sub BrtSld_Change()

    If nBoardType = LEVIN_RGB10 Or nBoardType = LEVIN_RGB20 _
        Or nBoardType = LEVIN_VGA100 Or nBoardType = LEVIN_VGA170 Then         '对于RGB,VGA卡
        
        If Red.Value = True Then
            MV_SetDeviceParameter hDevice, ADJUST_R_LUM, BrtSld.Value      '设置红路亮度值
        ElseIf Blue.Value = True Then
            MV_SetDeviceParameter hDevice, ADJUST_B_LUM, BrtSld.Value      '设置蓝路亮度值
        Else
            MV_SetDeviceParameter hDevice, ADJUST_G_LUM, BrtSld.Value      '设置绿路亮度值
        End If

    Else
        MV_SetDeviceParameter hDevice, ADJUST_R_LUM, BrtSld.Value      '对于M10、M20,设置亮度值
    End If

End Sub

Private Sub CardList_Click()
    Dim val As Long
    
    '停止当前板卡
    MV_OperateDevice hDevice, MVSTOP
    MV_CloseDevice hDevice

    '打开另外一块采集卡,得到板卡类型
    Index = CardList.ListIndex
    hDevice = MV_OpenDevice(Index, True)
    nBoardType = MV_GetDeviceParameter(hDevice, GET_BOARD_TYPE)
    
    '板卡开始工作
    MV_SetDeviceParameter hDevice, DISP_WHND, Form1.DispArea.hWnd       '设置视频图像显示窗口句柄
    MV_OperateDevice hDevice, MVRUN                            '设置采集卡开始采集并显示图像

    '根据类型,初始化窗口菜单
    If nBoardType = LEVIN_RGB10 Then

        Form1.SyncSet.Visible = True
        val = MV_GetDeviceParameter(hDevice, WORK_SYNC)

        Select Case val

            Case 0: Form1.RSync.Checked = True

            Case 1: Form1.GSync.Checked = True

            Case 2: Form1.BSync.Checked = True

            Case 3: Form1.CSync.Checked = True

            Case 5: Form1.SSync.Checked = True
        End Select

        Form1.CapFormat.Visible = False

    ElseIf nBoardType = LEVIN_RGB20 Or nBoardType = LEVIN_M20 Then

        Form1.test.Visible = True
        Form1.CapFormat.Visible = False

        If nBoardType = LEVIN_RGB20 Or nBoardType = LEVIN_VGA100 Or nBoardType = LEVIN_VGA170 Then

            Form1.SyncSet.Visible = True
            val = MV_GetDeviceParameter(hDevice, WORK_SYNC)

            Select Case val

                Case 0: Form1.RSync.Checked = True

                Case 1: Form1.GSync.Checked = True

                Case 2: Form1.BSync.Checked = True

                Case 3: Form1.CSync.Checked = True

                Case 5: Form1.SSync.Checked = True
            End Select

        Else

            Form1.SyncSet.Visible = False
        End If

    ElseIf nBoardType = V500 Or nBoardType = V510 Or nBoardType = V520 Then

        Form1.TenBitMode.Visible = True
        Form1.FilterSet.Visible = True
        
    Else
        

⌨️ 快捷键说明

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