home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Colors"
- ClientHeight = 4425
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 6240
- LinkTopic = "Form1"
- ScaleHeight = 4425
- ScaleWidth = 6240
- StartUpPosition = 3 'Windows Default
- Begin VB.PictureBox Picture2
- BackColor = &H00808080&
- Height = 1815
- Left = 3270
- ScaleHeight = 1755
- ScaleWidth = 2535
- TabIndex = 7
- Top = 240
- Width = 2595
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "Red = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 10
- Top = 120
- Width = 1125
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- Caption = "Green = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 9
- Top = 360
- Width = 1215
- End
- Begin VB.Label Label6
- BackStyle = 0 'Transparent
- Caption = "Blue = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 8
- Top = 600
- Width = 1215
- End
- End
- Begin VB.PictureBox Picture1
- BackColor = &H00808080&
- Height = 1815
- Left = 240
- ScaleHeight = 1755
- ScaleWidth = 2535
- TabIndex = 3
- Top = 240
- Width = 2595
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Blue = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 600
- Width = 1215
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- Caption = "Green = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 5
- Top = 360
- Width = 1335
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Red = 128"
- BeginProperty Font
- Name = "Tahoma"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 4
- Top = 120
- Width = 1095
- End
- End
- Begin VB.HScrollBar HScroll3
- Height = 255
- LargeChange = 10
- Left = 240
- Max = 255
- TabIndex = 2
- Top = 3840
- Value = 128
- Width = 5655
- End
- Begin VB.HScrollBar HScroll2
- Height = 255
- LargeChange = 10
- Left = 240
- Max = 255
- TabIndex = 1
- Top = 3120
- Value = 128
- Width = 5655
- End
- Begin VB.HScrollBar HScroll1
- Height = 255
- LargeChange = 10
- Left = 240
- Max = 255
- TabIndex = 0
- Top = 2400
- Value = 128
- Width = 5655
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub HScroll1_Change()
- Label4.Caption = "Red = " & HScroll1.Value
- Picture2.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
- Private Sub HScroll1_Scroll()
- Label1.Caption = "Red = " & HScroll1.Value
- Picture1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
- Private Sub HScroll2_Change()
- Label5.Caption = "Green = " & HScroll2.Value
- Picture2.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
- Private Sub HScroll2_Scroll()
- Label2.Caption = "Green = " & HScroll2.Value
- Picture1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
- Private Sub HScroll3_Change()
- Label6.Caption = "Blue = " & HScroll3.Value
- Picture2.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
- Private Sub HScroll3_Scroll()
- Label3.Caption = "Blue = " & HScroll3.Value
- Picture1.BackColor = RGB(HScroll1.Value, HScroll2.Value, HScroll3.Value)
- End Sub
-