VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "调色板"
   ClientHeight    =   4020
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5970
   LinkTopic       =   "Form1"
   ScaleHeight     =   4020
   ScaleWidth      =   5970
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "调色区"
      Height          =   1755
      Left            =   255
      TabIndex        =   0
      Top             =   1920
      Width           =   5400
      Begin VB.HScrollBar HScroll3 
         Height          =   300
         Left            =   720
         TabIndex        =   3
         Top             =   1200
         Width           =   2370
      End
      Begin VB.HScrollBar HScroll2 
         Height          =   300
         Left            =   735
         TabIndex        =   2
         Top             =   720
         Width           =   2370
      End
      Begin VB.HScrollBar HScroll1 
         Height          =   300
         Left            =   720
         TabIndex        =   1
         Top             =   240
         Width           =   2370
      End
      Begin VB.Label Label7 
         BorderStyle     =   1  'Fixed Single
         Height          =   255
         Left            =   3360
         TabIndex        =   10
         Top             =   1200
         Width           =   1455
      End
      Begin VB.Label Label6 
         BorderStyle     =   1  'Fixed Single
         Height          =   255
         Left            =   3360
         TabIndex        =   9
         Top             =   720
         Width           =   1455
      End
      Begin VB.Label Label5 
         BorderStyle     =   1  'Fixed Single
         Height          =   255
         Left            =   3360
         TabIndex        =   8
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label3 
         Caption         =   "蓝色"
         Height          =   210
         Left            =   195
         TabIndex        =   6
         Top             =   1200
         Width           =   360
      End
      Begin VB.Label Label2 
         Caption         =   "绿色"
         Height          =   255
         Left            =   195
         TabIndex        =   5
         Top             =   750
         Width           =   420
      End
      Begin VB.Label Label1 
         Caption         =   "红色"
         Height          =   195
         Left            =   180
         TabIndex        =   4
         Top             =   315
         Width           =   420
      End
   End
   Begin VB.Label Label4 
      BorderStyle     =   1  'Fixed Single
      Height          =   1425
      Left            =   990
      TabIndex        =   7
      Top             =   255
      Width           =   3990
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
    '初始化三个滚动条
    HScroll1.Max = 255
    HScroll1.Min = 0
    HScroll1.LargeChange = 5
    HScroll1.SmallChange = 1
    HScroll2.Max = 255
    HScroll2.Min = 0
    HScroll2.LargeChange = 5
    HScroll2.SmallChange = 1
    HScroll3.Max = 255
    HScroll3.Min = 0
    HScroll3.LargeChange = 5
    HScroll3.SmallChange = 1
    
  
 
    
    '设置用于显示颜色的标签控件的边框
    Label4.BorderStyle = 1
    Label4.BackColor = RGB(0, 0, 0)
    Label5.BorderStyle = 1
    Label6.BorderStyle = 1
    Label7.BorderStyle = 1
End Sub

Private Sub HScroll1_Change()
    Label4.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
    Label5.BackColor = RGB(HScroll1, 0, 0)
End Sub

Private Sub HScroll2_Change()
    Label4.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
    Label6.BackColor = RGB(0, HScroll2, 0)
End Sub

Private Sub HScroll3_Change()
    Label4.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
    Label7.BackColor = RGB(0, 0, HScroll3)
End Sub




