Click here to Skip to main content
Click here to Skip to main content
Articles » Multimedia » GDI+ » General » Downloads
 
Add your own
alternative version

Color Scale Filter

, 17 Jul 2007 CPOL
Grayscale and color scale filters.
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class frmMain
   Inherits System.Windows.Forms.Form

   'Form overrides dispose to clean up the component list.
   <System.Diagnostics.DebuggerNonUserCode()> _
   Protected Overrides Sub Dispose(ByVal disposing As Boolean)
      If disposing AndAlso components IsNot Nothing Then
         components.Dispose()
      End If
      MyBase.Dispose(disposing)
   End Sub

   'Required by the Windows Form Designer
   Private components As System.ComponentModel.IContainer

   'NOTE: The following procedure is required by the Windows Form Designer
   'It can be modified using the Windows Form Designer.  
   'Do not modify it using the code editor.
   <System.Diagnostics.DebuggerStepThrough()> _
   Private Sub InitializeComponent()
      Me.mnuMain = New System.Windows.Forms.MenuStrip
      Me.FileToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
      Me.OpenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
      Me.SaveAsToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
      Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator
      Me.ExitToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem
      Me.pnlOriginal = New System.Windows.Forms.Panel
      Me.pnlFiltered = New System.Windows.Forms.Panel
      Me.tabMain = New System.Windows.Forms.TabControl
      Me.tabGray = New System.Windows.Forms.TabPage
      Me.rdbGrayCustom = New System.Windows.Forms.RadioButton
      Me.rdbGrayBright = New System.Windows.Forms.RadioButton
      Me.rdbGrayNormal = New System.Windows.Forms.RadioButton
      Me.txtGrayBlue = New System.Windows.Forms.TextBox
      Me.txtGrayGreen = New System.Windows.Forms.TextBox
      Me.sliderGrayBlue = New System.Windows.Forms.TrackBar
      Me.sliderGrayGreen = New System.Windows.Forms.TrackBar
      Me.txtGrayRed = New System.Windows.Forms.TextBox
      Me.lblGrayBlue = New System.Windows.Forms.Label
      Me.lblGrayGreen = New System.Windows.Forms.Label
      Me.lblGrayRed = New System.Windows.Forms.Label
      Me.sliderGrayRed = New System.Windows.Forms.TrackBar
      Me.tabColor = New System.Windows.Forms.TabPage
      Me.picEndColor = New System.Windows.Forms.PictureBox
      Me.picStartColor = New System.Windows.Forms.PictureBox
      Me.btnEndColor = New System.Windows.Forms.Button
      Me.btnStartColor = New System.Windows.Forms.Button
      Me.rdbColorCustom = New System.Windows.Forms.RadioButton
      Me.rdbColorBright = New System.Windows.Forms.RadioButton
      Me.rdbColorNormal = New System.Windows.Forms.RadioButton
      Me.txtColorBlue = New System.Windows.Forms.TextBox
      Me.txtColorGreen = New System.Windows.Forms.TextBox
      Me.sliderColorBlue = New System.Windows.Forms.TrackBar
      Me.sliderColorGreen = New System.Windows.Forms.TrackBar
      Me.txtColorRed = New System.Windows.Forms.TextBox
      Me.lblColorBlue = New System.Windows.Forms.Label
      Me.lblColorGreen = New System.Windows.Forms.Label
      Me.lblColorRed = New System.Windows.Forms.Label
      Me.sliderColorRed = New System.Windows.Forms.TrackBar
      Me.dlgFileOpen = New System.Windows.Forms.OpenFileDialog
      Me.dlgFileSave = New System.Windows.Forms.SaveFileDialog
      Me.dlgColor = New System.Windows.Forms.ColorDialog
      Me.mnuMain.SuspendLayout()
      Me.tabMain.SuspendLayout()
      Me.tabGray.SuspendLayout()
      CType(Me.sliderGrayBlue, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.sliderGrayGreen, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.sliderGrayRed, System.ComponentModel.ISupportInitialize).BeginInit()
      Me.tabColor.SuspendLayout()
      CType(Me.picEndColor, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.picStartColor, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.sliderColorBlue, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.sliderColorGreen, System.ComponentModel.ISupportInitialize).BeginInit()
      CType(Me.sliderColorRed, System.ComponentModel.ISupportInitialize).BeginInit()
      Me.SuspendLayout()
      '
      'mnuMain
      '
      Me.mnuMain.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.FileToolStripMenuItem})
      Me.mnuMain.Location = New System.Drawing.Point(0, 0)
      Me.mnuMain.Name = "mnuMain"
      Me.mnuMain.Size = New System.Drawing.Size(577, 24)
      Me.mnuMain.TabIndex = 0
      Me.mnuMain.Text = "MenuStrip1"
      '
      'FileToolStripMenuItem
      '
      Me.FileToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.OpenToolStripMenuItem, Me.SaveAsToolStripMenuItem, Me.ToolStripSeparator1, Me.ExitToolStripMenuItem})
      Me.FileToolStripMenuItem.Name = "FileToolStripMenuItem"
      Me.FileToolStripMenuItem.Size = New System.Drawing.Size(35, 20)
      Me.FileToolStripMenuItem.Text = "File"
      '
      'OpenToolStripMenuItem
      '
      Me.OpenToolStripMenuItem.Name = "OpenToolStripMenuItem"
      Me.OpenToolStripMenuItem.Size = New System.Drawing.Size(124, 22)
      Me.OpenToolStripMenuItem.Text = "Open"
      '
      'SaveAsToolStripMenuItem
      '
      Me.SaveAsToolStripMenuItem.Name = "SaveAsToolStripMenuItem"
      Me.SaveAsToolStripMenuItem.Size = New System.Drawing.Size(124, 22)
      Me.SaveAsToolStripMenuItem.Text = "Save As"
      '
      'ToolStripSeparator1
      '
      Me.ToolStripSeparator1.Name = "ToolStripSeparator1"
      Me.ToolStripSeparator1.Size = New System.Drawing.Size(121, 6)
      '
      'ExitToolStripMenuItem
      '
      Me.ExitToolStripMenuItem.Name = "ExitToolStripMenuItem"
      Me.ExitToolStripMenuItem.Size = New System.Drawing.Size(124, 22)
      Me.ExitToolStripMenuItem.Text = "Exit"
      '
      'pnlOriginal
      '
      Me.pnlOriginal.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center
      Me.pnlOriginal.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
      Me.pnlOriginal.Location = New System.Drawing.Point(5, 30)
      Me.pnlOriginal.Name = "pnlOriginal"
      Me.pnlOriginal.Size = New System.Drawing.Size(280, 210)
      Me.pnlOriginal.TabIndex = 1
      '
      'pnlFiltered
      '
      Me.pnlFiltered.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center
      Me.pnlFiltered.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
      Me.pnlFiltered.Location = New System.Drawing.Point(290, 30)
      Me.pnlFiltered.Name = "pnlFiltered"
      Me.pnlFiltered.Size = New System.Drawing.Size(280, 210)
      Me.pnlFiltered.TabIndex = 2
      '
      'tabMain
      '
      Me.tabMain.Alignment = System.Windows.Forms.TabAlignment.Bottom
      Me.tabMain.Controls.Add(Me.tabGray)
      Me.tabMain.Controls.Add(Me.tabColor)
      Me.tabMain.Location = New System.Drawing.Point(5, 246)
      Me.tabMain.Name = "tabMain"
      Me.tabMain.SelectedIndex = 0
      Me.tabMain.Size = New System.Drawing.Size(570, 165)
      Me.tabMain.TabIndex = 3
      '
      'tabGray
      '
      Me.tabGray.BackColor = System.Drawing.SystemColors.Control
      Me.tabGray.Controls.Add(Me.rdbGrayCustom)
      Me.tabGray.Controls.Add(Me.rdbGrayBright)
      Me.tabGray.Controls.Add(Me.rdbGrayNormal)
      Me.tabGray.Controls.Add(Me.txtGrayBlue)
      Me.tabGray.Controls.Add(Me.txtGrayGreen)
      Me.tabGray.Controls.Add(Me.sliderGrayBlue)
      Me.tabGray.Controls.Add(Me.sliderGrayGreen)
      Me.tabGray.Controls.Add(Me.txtGrayRed)
      Me.tabGray.Controls.Add(Me.lblGrayBlue)
      Me.tabGray.Controls.Add(Me.lblGrayGreen)
      Me.tabGray.Controls.Add(Me.lblGrayRed)
      Me.tabGray.Controls.Add(Me.sliderGrayRed)
      Me.tabGray.Location = New System.Drawing.Point(4, 4)
      Me.tabGray.Name = "tabGray"
      Me.tabGray.Padding = New System.Windows.Forms.Padding(3)
      Me.tabGray.Size = New System.Drawing.Size(562, 139)
      Me.tabGray.TabIndex = 0
      Me.tabGray.Text = "Gray"
      '
      'rdbGrayCustom
      '
      Me.rdbGrayCustom.AutoSize = True
      Me.rdbGrayCustom.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbGrayCustom.Location = New System.Drawing.Point(3, 46)
      Me.rdbGrayCustom.Name = "rdbGrayCustom"
      Me.rdbGrayCustom.Size = New System.Drawing.Size(73, 21)
      Me.rdbGrayCustom.TabIndex = 13
      Me.rdbGrayCustom.Text = "Custom"
      Me.rdbGrayCustom.UseVisualStyleBackColor = True
      '
      'rdbGrayBright
      '
      Me.rdbGrayBright.AutoSize = True
      Me.rdbGrayBright.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbGrayBright.Location = New System.Drawing.Point(3, 26)
      Me.rdbGrayBright.Name = "rdbGrayBright"
      Me.rdbGrayBright.Size = New System.Drawing.Size(63, 21)
      Me.rdbGrayBright.TabIndex = 12
      Me.rdbGrayBright.Text = "Bright"
      Me.rdbGrayBright.UseVisualStyleBackColor = True
      '
      'rdbGrayNormal
      '
      Me.rdbGrayNormal.AutoSize = True
      Me.rdbGrayNormal.Checked = True
      Me.rdbGrayNormal.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbGrayNormal.Location = New System.Drawing.Point(3, 6)
      Me.rdbGrayNormal.Name = "rdbGrayNormal"
      Me.rdbGrayNormal.Size = New System.Drawing.Size(71, 21)
      Me.rdbGrayNormal.TabIndex = 11
      Me.rdbGrayNormal.TabStop = True
      Me.rdbGrayNormal.Text = "Normal"
      Me.rdbGrayNormal.UseVisualStyleBackColor = True
      '
      'txtGrayBlue
      '
      Me.txtGrayBlue.Enabled = False
      Me.txtGrayBlue.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtGrayBlue.Location = New System.Drawing.Point(511, 101)
      Me.txtGrayBlue.Name = "txtGrayBlue"
      Me.txtGrayBlue.Size = New System.Drawing.Size(38, 23)
      Me.txtGrayBlue.TabIndex = 10
      Me.txtGrayBlue.Text = "11"
      Me.txtGrayBlue.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'txtGrayGreen
      '
      Me.txtGrayGreen.Enabled = False
      Me.txtGrayGreen.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtGrayGreen.Location = New System.Drawing.Point(511, 58)
      Me.txtGrayGreen.Name = "txtGrayGreen"
      Me.txtGrayGreen.Size = New System.Drawing.Size(38, 23)
      Me.txtGrayGreen.TabIndex = 9
      Me.txtGrayGreen.Text = "59"
      Me.txtGrayGreen.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'sliderGrayBlue
      '
      Me.sliderGrayBlue.Enabled = False
      Me.sliderGrayBlue.LargeChange = 10
      Me.sliderGrayBlue.Location = New System.Drawing.Point(153, 94)
      Me.sliderGrayBlue.Maximum = 100
      Me.sliderGrayBlue.Name = "sliderGrayBlue"
      Me.sliderGrayBlue.Size = New System.Drawing.Size(352, 45)
      Me.sliderGrayBlue.TabIndex = 8
      Me.sliderGrayBlue.Value = 11
      '
      'sliderGrayGreen
      '
      Me.sliderGrayGreen.Enabled = False
      Me.sliderGrayGreen.LargeChange = 10
      Me.sliderGrayGreen.Location = New System.Drawing.Point(153, 53)
      Me.sliderGrayGreen.Maximum = 100
      Me.sliderGrayGreen.Name = "sliderGrayGreen"
      Me.sliderGrayGreen.Size = New System.Drawing.Size(352, 45)
      Me.sliderGrayGreen.TabIndex = 7
      Me.sliderGrayGreen.Value = 59
      '
      'txtGrayRed
      '
      Me.txtGrayRed.Enabled = False
      Me.txtGrayRed.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtGrayRed.Location = New System.Drawing.Point(511, 17)
      Me.txtGrayRed.Name = "txtGrayRed"
      Me.txtGrayRed.Size = New System.Drawing.Size(38, 23)
      Me.txtGrayRed.TabIndex = 6
      Me.txtGrayRed.Text = "30"
      Me.txtGrayRed.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'lblGrayBlue
      '
      Me.lblGrayBlue.AutoSize = True
      Me.lblGrayBlue.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblGrayBlue.Location = New System.Drawing.Point(125, 94)
      Me.lblGrayBlue.Name = "lblGrayBlue"
      Me.lblGrayBlue.Size = New System.Drawing.Size(22, 24)
      Me.lblGrayBlue.TabIndex = 5
      Me.lblGrayBlue.Text = "B"
      '
      'lblGrayGreen
      '
      Me.lblGrayGreen.AutoSize = True
      Me.lblGrayGreen.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblGrayGreen.Location = New System.Drawing.Point(125, 58)
      Me.lblGrayGreen.Name = "lblGrayGreen"
      Me.lblGrayGreen.Size = New System.Drawing.Size(24, 24)
      Me.lblGrayGreen.TabIndex = 4
      Me.lblGrayGreen.Text = "G"
      '
      'lblGrayRed
      '
      Me.lblGrayRed.AutoSize = True
      Me.lblGrayRed.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblGrayRed.Location = New System.Drawing.Point(125, 17)
      Me.lblGrayRed.Name = "lblGrayRed"
      Me.lblGrayRed.Size = New System.Drawing.Size(23, 24)
      Me.lblGrayRed.TabIndex = 3
      Me.lblGrayRed.Text = "R"
      '
      'sliderGrayRed
      '
      Me.sliderGrayRed.Enabled = False
      Me.sliderGrayRed.LargeChange = 10
      Me.sliderGrayRed.Location = New System.Drawing.Point(153, 12)
      Me.sliderGrayRed.Maximum = 100
      Me.sliderGrayRed.Name = "sliderGrayRed"
      Me.sliderGrayRed.Size = New System.Drawing.Size(352, 45)
      Me.sliderGrayRed.TabIndex = 0
      Me.sliderGrayRed.Value = 30
      '
      'tabColor
      '
      Me.tabColor.BackColor = System.Drawing.SystemColors.Control
      Me.tabColor.Controls.Add(Me.picEndColor)
      Me.tabColor.Controls.Add(Me.picStartColor)
      Me.tabColor.Controls.Add(Me.btnEndColor)
      Me.tabColor.Controls.Add(Me.btnStartColor)
      Me.tabColor.Controls.Add(Me.rdbColorCustom)
      Me.tabColor.Controls.Add(Me.rdbColorBright)
      Me.tabColor.Controls.Add(Me.rdbColorNormal)
      Me.tabColor.Controls.Add(Me.txtColorBlue)
      Me.tabColor.Controls.Add(Me.txtColorGreen)
      Me.tabColor.Controls.Add(Me.sliderColorBlue)
      Me.tabColor.Controls.Add(Me.sliderColorGreen)
      Me.tabColor.Controls.Add(Me.txtColorRed)
      Me.tabColor.Controls.Add(Me.lblColorBlue)
      Me.tabColor.Controls.Add(Me.lblColorGreen)
      Me.tabColor.Controls.Add(Me.lblColorRed)
      Me.tabColor.Controls.Add(Me.sliderColorRed)
      Me.tabColor.Location = New System.Drawing.Point(4, 4)
      Me.tabColor.Name = "tabColor"
      Me.tabColor.Padding = New System.Windows.Forms.Padding(3)
      Me.tabColor.Size = New System.Drawing.Size(562, 139)
      Me.tabColor.TabIndex = 1
      Me.tabColor.Text = "Color"
      '
      'picEndColor
      '
      Me.picEndColor.BackColor = System.Drawing.Color.White
      Me.picEndColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
      Me.picEndColor.Location = New System.Drawing.Point(90, 104)
      Me.picEndColor.Name = "picEndColor"
      Me.picEndColor.Size = New System.Drawing.Size(23, 23)
      Me.picEndColor.TabIndex = 29
      Me.picEndColor.TabStop = False
      '
      'picStartColor
      '
      Me.picStartColor.BackColor = System.Drawing.Color.FromArgb(CType(CType(128, Byte), Integer), CType(CType(64, Byte), Integer), CType(CType(0, Byte), Integer))
      Me.picStartColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
      Me.picStartColor.Location = New System.Drawing.Point(90, 74)
      Me.picStartColor.Name = "picStartColor"
      Me.picStartColor.Size = New System.Drawing.Size(23, 23)
      Me.picStartColor.TabIndex = 28
      Me.picStartColor.TabStop = False
      '
      'btnEndColor
      '
      Me.btnEndColor.BackColor = System.Drawing.SystemColors.ButtonFace
      Me.btnEndColor.Location = New System.Drawing.Point(8, 101)
      Me.btnEndColor.Name = "btnEndColor"
      Me.btnEndColor.Size = New System.Drawing.Size(73, 32)
      Me.btnEndColor.TabIndex = 27
      Me.btnEndColor.Text = "End Color"
      Me.btnEndColor.UseVisualStyleBackColor = False
      '
      'btnStartColor
      '
      Me.btnStartColor.BackColor = System.Drawing.SystemColors.ButtonFace
      Me.btnStartColor.Location = New System.Drawing.Point(8, 70)
      Me.btnStartColor.Name = "btnStartColor"
      Me.btnStartColor.Size = New System.Drawing.Size(73, 32)
      Me.btnStartColor.TabIndex = 26
      Me.btnStartColor.Text = "Start Color"
      Me.btnStartColor.UseVisualStyleBackColor = False
      '
      'rdbColorCustom
      '
      Me.rdbColorCustom.AutoSize = True
      Me.rdbColorCustom.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbColorCustom.Location = New System.Drawing.Point(8, 43)
      Me.rdbColorCustom.Name = "rdbColorCustom"
      Me.rdbColorCustom.Size = New System.Drawing.Size(73, 21)
      Me.rdbColorCustom.TabIndex = 25
      Me.rdbColorCustom.Text = "Custom"
      Me.rdbColorCustom.UseVisualStyleBackColor = True
      '
      'rdbColorBright
      '
      Me.rdbColorBright.AutoSize = True
      Me.rdbColorBright.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbColorBright.Location = New System.Drawing.Point(8, 23)
      Me.rdbColorBright.Name = "rdbColorBright"
      Me.rdbColorBright.Size = New System.Drawing.Size(63, 21)
      Me.rdbColorBright.TabIndex = 24
      Me.rdbColorBright.Text = "Bright"
      Me.rdbColorBright.UseVisualStyleBackColor = True
      '
      'rdbColorNormal
      '
      Me.rdbColorNormal.AutoSize = True
      Me.rdbColorNormal.Checked = True
      Me.rdbColorNormal.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.rdbColorNormal.Location = New System.Drawing.Point(8, 3)
      Me.rdbColorNormal.Name = "rdbColorNormal"
      Me.rdbColorNormal.Size = New System.Drawing.Size(71, 21)
      Me.rdbColorNormal.TabIndex = 23
      Me.rdbColorNormal.TabStop = True
      Me.rdbColorNormal.Text = "Normal"
      Me.rdbColorNormal.UseVisualStyleBackColor = True
      '
      'txtColorBlue
      '
      Me.txtColorBlue.Enabled = False
      Me.txtColorBlue.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtColorBlue.Location = New System.Drawing.Point(516, 98)
      Me.txtColorBlue.Name = "txtColorBlue"
      Me.txtColorBlue.Size = New System.Drawing.Size(38, 23)
      Me.txtColorBlue.TabIndex = 22
      Me.txtColorBlue.Text = "11"
      Me.txtColorBlue.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'txtColorGreen
      '
      Me.txtColorGreen.Enabled = False
      Me.txtColorGreen.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtColorGreen.Location = New System.Drawing.Point(516, 55)
      Me.txtColorGreen.Name = "txtColorGreen"
      Me.txtColorGreen.Size = New System.Drawing.Size(38, 23)
      Me.txtColorGreen.TabIndex = 21
      Me.txtColorGreen.Text = "59"
      Me.txtColorGreen.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'sliderColorBlue
      '
      Me.sliderColorBlue.Enabled = False
      Me.sliderColorBlue.LargeChange = 10
      Me.sliderColorBlue.Location = New System.Drawing.Point(158, 91)
      Me.sliderColorBlue.Maximum = 100
      Me.sliderColorBlue.Name = "sliderColorBlue"
      Me.sliderColorBlue.Size = New System.Drawing.Size(352, 45)
      Me.sliderColorBlue.TabIndex = 20
      Me.sliderColorBlue.Value = 11
      '
      'sliderColorGreen
      '
      Me.sliderColorGreen.Enabled = False
      Me.sliderColorGreen.LargeChange = 10
      Me.sliderColorGreen.Location = New System.Drawing.Point(158, 50)
      Me.sliderColorGreen.Maximum = 100
      Me.sliderColorGreen.Name = "sliderColorGreen"
      Me.sliderColorGreen.Size = New System.Drawing.Size(352, 45)
      Me.sliderColorGreen.TabIndex = 19
      Me.sliderColorGreen.Value = 59
      '
      'txtColorRed
      '
      Me.txtColorRed.Enabled = False
      Me.txtColorRed.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.txtColorRed.Location = New System.Drawing.Point(516, 14)
      Me.txtColorRed.Name = "txtColorRed"
      Me.txtColorRed.Size = New System.Drawing.Size(38, 23)
      Me.txtColorRed.TabIndex = 18
      Me.txtColorRed.Text = "30"
      Me.txtColorRed.TextAlign = System.Windows.Forms.HorizontalAlignment.Right
      '
      'lblColorBlue
      '
      Me.lblColorBlue.AutoSize = True
      Me.lblColorBlue.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblColorBlue.Location = New System.Drawing.Point(130, 91)
      Me.lblColorBlue.Name = "lblColorBlue"
      Me.lblColorBlue.Size = New System.Drawing.Size(22, 24)
      Me.lblColorBlue.TabIndex = 17
      Me.lblColorBlue.Text = "B"
      '
      'lblColorGreen
      '
      Me.lblColorGreen.AutoSize = True
      Me.lblColorGreen.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblColorGreen.Location = New System.Drawing.Point(130, 55)
      Me.lblColorGreen.Name = "lblColorGreen"
      Me.lblColorGreen.Size = New System.Drawing.Size(24, 24)
      Me.lblColorGreen.TabIndex = 16
      Me.lblColorGreen.Text = "G"
      '
      'lblColorRed
      '
      Me.lblColorRed.AutoSize = True
      Me.lblColorRed.Font = New System.Drawing.Font("Microsoft Sans Serif", 14.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(238, Byte))
      Me.lblColorRed.Location = New System.Drawing.Point(130, 14)
      Me.lblColorRed.Name = "lblColorRed"
      Me.lblColorRed.Size = New System.Drawing.Size(23, 24)
      Me.lblColorRed.TabIndex = 15
      Me.lblColorRed.Text = "R"
      '
      'sliderColorRed
      '
      Me.sliderColorRed.Enabled = False
      Me.sliderColorRed.LargeChange = 10
      Me.sliderColorRed.Location = New System.Drawing.Point(158, 9)
      Me.sliderColorRed.Maximum = 100
      Me.sliderColorRed.Name = "sliderColorRed"
      Me.sliderColorRed.Size = New System.Drawing.Size(352, 45)
      Me.sliderColorRed.TabIndex = 14
      Me.sliderColorRed.Value = 30
      '
      'dlgFileOpen
      '
      Me.dlgFileOpen.Filter = "JPEG image|*.jpg|GIF image|*.gif|PNG image|*.png|BMP image|*.bmp"
      '
      'dlgFileSave
      '
      Me.dlgFileSave.Filter = "JPEG image|*.jpg|GIF image|*.gif|PNG image|*.png|BMP image|*.bmp"
      '
      'frmMain
      '
      Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
      Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
      Me.ClientSize = New System.Drawing.Size(577, 419)
      Me.Controls.Add(Me.tabMain)
      Me.Controls.Add(Me.pnlFiltered)
      Me.Controls.Add(Me.pnlOriginal)
      Me.Controls.Add(Me.mnuMain)
      Me.MainMenuStrip = Me.mnuMain
      Me.Name = "frmMain"
      Me.Text = "Image Filter"
      Me.mnuMain.ResumeLayout(False)
      Me.mnuMain.PerformLayout()
      Me.tabMain.ResumeLayout(False)
      Me.tabGray.ResumeLayout(False)
      Me.tabGray.PerformLayout()
      CType(Me.sliderGrayBlue, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.sliderGrayGreen, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.sliderGrayRed, System.ComponentModel.ISupportInitialize).EndInit()
      Me.tabColor.ResumeLayout(False)
      Me.tabColor.PerformLayout()
      CType(Me.picEndColor, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.picStartColor, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.sliderColorBlue, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.sliderColorGreen, System.ComponentModel.ISupportInitialize).EndInit()
      CType(Me.sliderColorRed, System.ComponentModel.ISupportInitialize).EndInit()
      Me.ResumeLayout(False)
      Me.PerformLayout()

   End Sub
   Friend WithEvents mnuMain As System.Windows.Forms.MenuStrip
   Friend WithEvents FileToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
   Friend WithEvents OpenToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
   Friend WithEvents SaveAsToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
   Friend WithEvents ToolStripSeparator1 As System.Windows.Forms.ToolStripSeparator
   Friend WithEvents ExitToolStripMenuItem As System.Windows.Forms.ToolStripMenuItem
   Friend WithEvents pnlOriginal As System.Windows.Forms.Panel
   Friend WithEvents pnlFiltered As System.Windows.Forms.Panel
   Friend WithEvents tabMain As System.Windows.Forms.TabControl
   Friend WithEvents tabGray As System.Windows.Forms.TabPage
   Friend WithEvents tabColor As System.Windows.Forms.TabPage
   Friend WithEvents sliderGrayRed As System.Windows.Forms.TrackBar
   Private WithEvents dlgFileOpen As System.Windows.Forms.OpenFileDialog
   Friend WithEvents dlgFileSave As System.Windows.Forms.SaveFileDialog
   Friend WithEvents dlgColor As System.Windows.Forms.ColorDialog
   Friend WithEvents lblGrayBlue As System.Windows.Forms.Label
   Friend WithEvents lblGrayGreen As System.Windows.Forms.Label
   Friend WithEvents lblGrayRed As System.Windows.Forms.Label
   Friend WithEvents txtGrayRed As System.Windows.Forms.TextBox
   Friend WithEvents rdbGrayCustom As System.Windows.Forms.RadioButton
   Friend WithEvents rdbGrayBright As System.Windows.Forms.RadioButton
   Friend WithEvents rdbGrayNormal As System.Windows.Forms.RadioButton
   Friend WithEvents txtGrayBlue As System.Windows.Forms.TextBox
   Friend WithEvents txtGrayGreen As System.Windows.Forms.TextBox
   Friend WithEvents sliderGrayBlue As System.Windows.Forms.TrackBar
   Friend WithEvents sliderGrayGreen As System.Windows.Forms.TrackBar
   Friend WithEvents rdbColorCustom As System.Windows.Forms.RadioButton
   Friend WithEvents rdbColorBright As System.Windows.Forms.RadioButton
   Friend WithEvents rdbColorNormal As System.Windows.Forms.RadioButton
   Friend WithEvents txtColorBlue As System.Windows.Forms.TextBox
   Friend WithEvents txtColorGreen As System.Windows.Forms.TextBox
   Friend WithEvents sliderColorBlue As System.Windows.Forms.TrackBar
   Friend WithEvents sliderColorGreen As System.Windows.Forms.TrackBar
   Friend WithEvents txtColorRed As System.Windows.Forms.TextBox
   Friend WithEvents lblColorBlue As System.Windows.Forms.Label
   Friend WithEvents lblColorGreen As System.Windows.Forms.Label
   Friend WithEvents lblColorRed As System.Windows.Forms.Label
   Friend WithEvents sliderColorRed As System.Windows.Forms.TrackBar
   Friend WithEvents picEndColor As System.Windows.Forms.PictureBox
   Friend WithEvents picStartColor As System.Windows.Forms.PictureBox
   Friend WithEvents btnEndColor As System.Windows.Forms.Button
   Friend WithEvents btnStartColor As System.Windows.Forms.Button

End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Miran.Uhan
Engineer
Slovenia Slovenia
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141216.1 | Last Updated 17 Jul 2007
Article Copyright 2007 by Miran.Uhan
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid