Option Strict Off
Option Explicit On
Friend Class Form1
	Inherits System.Windows.Forms.Form
#Region "Windows Form Designer generated code "
	Public Sub New()
		MyBase.New()
		If m_vb6FormDefInstance Is Nothing Then
			If m_InitializingDefInstance Then
				m_vb6FormDefInstance = Me
			Else
				Try 
					'For the start-up form, the first instance created is the default instance.
					If System.Reflection.Assembly.GetExecutingAssembly.EntryPoint.DeclaringType Is Me.GetType Then
						m_vb6FormDefInstance = Me
					End If
				Catch
				End Try
			End If
		End If
		'This call is required by the Windows Form Designer.
		InitializeComponent()
	End Sub
	'Form overrides dispose to clean up the component list.
	Protected Overloads Overrides Sub Dispose(ByVal Disposing As Boolean)
		If Disposing Then
			If Not components Is Nothing Then
				components.Dispose()
			End If
		End If
		MyBase.Dispose(Disposing)
	End Sub
	'Required by the Windows Form Designer
	Private components As System.ComponentModel.IContainer
    Public WithEvents ImageKit1 As AxIMAGEKIT7Lib.AxImageKit
	Public WithEvents Check11 As System.Windows.Forms.CheckBox
	Public WithEvents _Check9_4 As System.Windows.Forms.CheckBox
	Public WithEvents _Check9_3 As System.Windows.Forms.CheckBox
	Public WithEvents Command2 As System.Windows.Forms.Button
	Public WithEvents _Check9_0 As System.Windows.Forms.CheckBox
	Public WithEvents _Check9_1 As System.Windows.Forms.CheckBox
	Public WithEvents _Check9_2 As System.Windows.Forms.CheckBox
	Public WithEvents Label3 As System.Windows.Forms.Label
	Public WithEvents Frame9 As System.Windows.Forms.GroupBox
	Public WithEvents Command4 As System.Windows.Forms.Button
	Public WithEvents Check8 As System.Windows.Forms.CheckBox
	Public WithEvents Command1 As System.Windows.Forms.Button
	Public WithEvents Frame8 As System.Windows.Forms.GroupBox
	Public WithEvents Check2 As System.Windows.Forms.CheckBox
	Public WithEvents Check1 As System.Windows.Forms.CheckBox
	Public WithEvents Frame5 As System.Windows.Forms.GroupBox
	Public WithEvents Text1 As System.Windows.Forms.TextBox
	Public WithEvents Check7 As System.Windows.Forms.CheckBox
	Public WithEvents _Option2_2 As System.Windows.Forms.RadioButton
	Public WithEvents _Option2_1 As System.Windows.Forms.RadioButton
	Public WithEvents _Option2_0 As System.Windows.Forms.RadioButton
	Public WithEvents Frame7 As System.Windows.Forms.GroupBox
	Public WithEvents Check5 As System.Windows.Forms.CheckBox
	Public WithEvents Check6 As System.Windows.Forms.CheckBox
	Public WithEvents Label2 As System.Windows.Forms.Label
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Check4 As System.Windows.Forms.CheckBox
	Public WithEvents Check3 As System.Windows.Forms.CheckBox
	Public WithEvents Frame6 As System.Windows.Forms.GroupBox
	Public WithEvents HScroll1 As System.Windows.Forms.HScrollBar
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents _Option1_4 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_3 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_0 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_2 As System.Windows.Forms.RadioButton
	Public WithEvents _Option1_1 As System.Windows.Forms.RadioButton
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents Check9 As Microsoft.VisualBasic.Compatibility.VB6.CheckBoxArray
	Public WithEvents Option1 As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
	Public WithEvents Option2 As Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray
	'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.components = New System.ComponentModel.Container
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.ImageKit1 = New AxIMAGEKIT7Lib.AxImageKit
        Me.Check11 = New System.Windows.Forms.CheckBox
        Me.Frame9 = New System.Windows.Forms.GroupBox
        Me._Check9_4 = New System.Windows.Forms.CheckBox
        Me._Check9_3 = New System.Windows.Forms.CheckBox
        Me.Command2 = New System.Windows.Forms.Button
        Me._Check9_0 = New System.Windows.Forms.CheckBox
        Me._Check9_1 = New System.Windows.Forms.CheckBox
        Me._Check9_2 = New System.Windows.Forms.CheckBox
        Me.Label3 = New System.Windows.Forms.Label
        Me.Command4 = New System.Windows.Forms.Button
        Me.Frame8 = New System.Windows.Forms.GroupBox
        Me.Check8 = New System.Windows.Forms.CheckBox
        Me.Command1 = New System.Windows.Forms.Button
        Me.Frame5 = New System.Windows.Forms.GroupBox
        Me.Check2 = New System.Windows.Forms.CheckBox
        Me.Check1 = New System.Windows.Forms.CheckBox
        Me.Frame2 = New System.Windows.Forms.GroupBox
        Me.Text1 = New System.Windows.Forms.TextBox
        Me.Check7 = New System.Windows.Forms.CheckBox
        Me.Frame7 = New System.Windows.Forms.GroupBox
        Me._Option2_2 = New System.Windows.Forms.RadioButton
        Me._Option2_1 = New System.Windows.Forms.RadioButton
        Me._Option2_0 = New System.Windows.Forms.RadioButton
        Me.Check5 = New System.Windows.Forms.CheckBox
        Me.Check6 = New System.Windows.Forms.CheckBox
        Me.Label2 = New System.Windows.Forms.Label
        Me.Frame6 = New System.Windows.Forms.GroupBox
        Me.Check4 = New System.Windows.Forms.CheckBox
        Me.Check3 = New System.Windows.Forms.CheckBox
        Me.Frame1 = New System.Windows.Forms.GroupBox
        Me.HScroll1 = New System.Windows.Forms.HScrollBar
        Me.Label1 = New System.Windows.Forms.Label
        Me.Frame3 = New System.Windows.Forms.GroupBox
        Me._Option1_4 = New System.Windows.Forms.RadioButton
        Me._Option1_3 = New System.Windows.Forms.RadioButton
        Me._Option1_0 = New System.Windows.Forms.RadioButton
        Me._Option1_2 = New System.Windows.Forms.RadioButton
        Me._Option1_1 = New System.Windows.Forms.RadioButton
        Me.Check9 = New Microsoft.VisualBasic.Compatibility.VB6.CheckBoxArray(Me.components)
        Me.Option1 = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        Me.Option2 = New Microsoft.VisualBasic.Compatibility.VB6.RadioButtonArray(Me.components)
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.Frame9.SuspendLayout()
        Me.Frame8.SuspendLayout()
        Me.Frame5.SuspendLayout()
        Me.Frame2.SuspendLayout()
        Me.Frame7.SuspendLayout()
        Me.Frame6.SuspendLayout()
        Me.Frame1.SuspendLayout()
        Me.Frame3.SuspendLayout()
        CType(Me.Check9, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Option1, System.ComponentModel.ISupportInitialize).BeginInit()
        CType(Me.Option2, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        'ImageKit1
        '
        Me.ImageKit1.Location = New System.Drawing.Point(24, 8)
        Me.ImageKit1.Name = "ImageKit1"
        Me.ImageKit1.OcxState = CType(resources.GetObject("ImageKit1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.ImageKit1.Size = New System.Drawing.Size(425, 361)
        Me.ImageKit1.TabIndex = 33
        '
        'Check11
        '
        Me.Check11.BackColor = System.Drawing.SystemColors.Control
        Me.Check11.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check11.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check11.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check11.Location = New System.Drawing.Point(320, 536)
        Me.Check11.Name = "Check11"
        Me.Check11.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check11.Size = New System.Drawing.Size(121, 25)
        Me.Check11.TabIndex = 32
        Me.Check11.Text = "Magnifying Glass"
        '
        'Frame9
        '
        Me.Frame9.BackColor = System.Drawing.SystemColors.Control
        Me.Frame9.Controls.Add(Me._Check9_4)
        Me.Frame9.Controls.Add(Me._Check9_3)
        Me.Frame9.Controls.Add(Me.Command2)
        Me.Frame9.Controls.Add(Me._Check9_0)
        Me.Frame9.Controls.Add(Me._Check9_1)
        Me.Frame9.Controls.Add(Me._Check9_2)
        Me.Frame9.Controls.Add(Me.Label3)
        Me.Frame9.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame9.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame9.Location = New System.Drawing.Point(456, 168)
        Me.Frame9.Name = "Frame9"
        Me.Frame9.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame9.Size = New System.Drawing.Size(128, 161)
        Me.Frame9.TabIndex = 23
        Me.Frame9.TabStop = False
        Me.Frame9.Text = "Image Layers"
        '
        '_Check9_4
        '
        Me._Check9_4.BackColor = System.Drawing.SystemColors.Control
        Me._Check9_4.Cursor = System.Windows.Forms.Cursors.Default
        Me._Check9_4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Check9_4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check9.SetIndex(Me._Check9_4, CType(4, Short))
        Me._Check9_4.Location = New System.Drawing.Point(8, 96)
        Me._Check9_4.Name = "_Check9_4"
        Me._Check9_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Check9_4.Size = New System.Drawing.Size(41, 17)
        Me._Check9_4.TabIndex = 35
        Me._Check9_4.Text = "5"
        '
        '_Check9_3
        '
        Me._Check9_3.BackColor = System.Drawing.SystemColors.Control
        Me._Check9_3.Cursor = System.Windows.Forms.Cursors.Default
        Me._Check9_3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Check9_3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check9.SetIndex(Me._Check9_3, CType(3, Short))
        Me._Check9_3.Location = New System.Drawing.Point(8, 80)
        Me._Check9_3.Name = "_Check9_3"
        Me._Check9_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Check9_3.Size = New System.Drawing.Size(41, 17)
        Me._Check9_3.TabIndex = 34
        Me._Check9_3.Text = "4"
        '
        'Command2
        '
        Me.Command2.BackColor = System.Drawing.SystemColors.Control
        Me.Command2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command2.Location = New System.Drawing.Point(8, 120)
        Me.Command2.Name = "Command2"
        Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command2.Size = New System.Drawing.Size(89, 25)
        Me.Command2.TabIndex = 27
        Me.Command2.Text = "Load"
        '
        '_Check9_0
        '
        Me._Check9_0.BackColor = System.Drawing.SystemColors.Control
        Me._Check9_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Check9_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Check9_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check9.SetIndex(Me._Check9_0, CType(0, Short))
        Me._Check9_0.Location = New System.Drawing.Point(8, 32)
        Me._Check9_0.Name = "_Check9_0"
        Me._Check9_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Check9_0.Size = New System.Drawing.Size(65, 17)
        Me._Check9_0.TabIndex = 26
        Me._Check9_0.Text = "1 (Red)"
        '
        '_Check9_1
        '
        Me._Check9_1.BackColor = System.Drawing.SystemColors.Control
        Me._Check9_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Check9_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Check9_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check9.SetIndex(Me._Check9_1, CType(1, Short))
        Me._Check9_1.Location = New System.Drawing.Point(8, 48)
        Me._Check9_1.Name = "_Check9_1"
        Me._Check9_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Check9_1.Size = New System.Drawing.Size(73, 17)
        Me._Check9_1.TabIndex = 25
        Me._Check9_1.Text = "2 (Green)"
        '
        '_Check9_2
        '
        Me._Check9_2.BackColor = System.Drawing.SystemColors.Control
        Me._Check9_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Check9_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Check9_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check9.SetIndex(Me._Check9_2, CType(2, Short))
        Me._Check9_2.Location = New System.Drawing.Point(8, 64)
        Me._Check9_2.Name = "_Check9_2"
        Me._Check9_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Check9_2.Size = New System.Drawing.Size(73, 17)
        Me._Check9_2.TabIndex = 24
        Me._Check9_2.Text = "3 (Blue)"
        '
        'Label3
        '
        Me.Label3.BackColor = System.Drawing.SystemColors.Control
        Me.Label3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label3.Location = New System.Drawing.Point(8, 16)
        Me.Label3.Name = "Label3"
        Me.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label3.Size = New System.Drawing.Size(104, 17)
        Me.Label3.TabIndex = 38
        Me.Label3.Text = "(Transparent Color)"
        '
        'Command4
        '
        Me.Command4.BackColor = System.Drawing.SystemColors.Control
        Me.Command4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command4.Location = New System.Drawing.Point(480, 472)
        Me.Command4.Name = "Command4"
        Me.Command4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command4.Size = New System.Drawing.Size(105, 49)
        Me.Command4.TabIndex = 15
        Me.Command4.Text = "End"
        '
        'Frame8
        '
        Me.Frame8.BackColor = System.Drawing.SystemColors.Control
        Me.Frame8.Controls.Add(Me.Check8)
        Me.Frame8.Controls.Add(Me.Command1)
        Me.Frame8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame8.Location = New System.Drawing.Point(456, 40)
        Me.Frame8.Name = "Frame8"
        Me.Frame8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame8.Size = New System.Drawing.Size(128, 73)
        Me.Frame8.TabIndex = 13
        Me.Frame8.TabStop = False
        Me.Frame8.Text = "Base Image"
        '
        'Check8
        '
        Me.Check8.BackColor = System.Drawing.SystemColors.Control
        Me.Check8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check8.Location = New System.Drawing.Point(16, 16)
        Me.Check8.Name = "Check8"
        Me.Check8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check8.Size = New System.Drawing.Size(73, 17)
        Me.Check8.TabIndex = 28
        Me.Check8.Text = "Display"
        '
        'Command1
        '
        Me.Command1.BackColor = System.Drawing.SystemColors.Control
        Me.Command1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command1.Location = New System.Drawing.Point(8, 40)
        Me.Command1.Name = "Command1"
        Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command1.Size = New System.Drawing.Size(89, 25)
        Me.Command1.TabIndex = 14
        Me.Command1.Text = "Load"
        '
        'Frame5
        '
        Me.Frame5.BackColor = System.Drawing.SystemColors.Control
        Me.Frame5.Controls.Add(Me.Check2)
        Me.Frame5.Controls.Add(Me.Check1)
        Me.Frame5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame5.Location = New System.Drawing.Point(448, 376)
        Me.Frame5.Name = "Frame5"
        Me.Frame5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame5.Size = New System.Drawing.Size(137, 65)
        Me.Frame5.TabIndex = 11
        Me.Frame5.TabStop = False
        Me.Frame5.Text = "Scroll"
        '
        'Check2
        '
        Me.Check2.BackColor = System.Drawing.SystemColors.Control
        Me.Check2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check2.Location = New System.Drawing.Point(16, 40)
        Me.Check2.Name = "Check2"
        Me.Check2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check2.Size = New System.Drawing.Size(65, 17)
        Me.Check2.TabIndex = 19
        Me.Check2.Text = "Drag"
        '
        'Check1
        '
        Me.Check1.BackColor = System.Drawing.SystemColors.Control
        Me.Check1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check1.Location = New System.Drawing.Point(16, 16)
        Me.Check1.Name = "Check1"
        Me.Check1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check1.Size = New System.Drawing.Size(105, 17)
        Me.Check1.TabIndex = 12
        Me.Check1.Text = "Scroll bars"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.Add(Me.Text1)
        Me.Frame2.Controls.Add(Me.Check7)
        Me.Frame2.Controls.Add(Me.Frame7)
        Me.Frame2.Controls.Add(Me.Check5)
        Me.Frame2.Controls.Add(Me.Check6)
        Me.Frame2.Controls.Add(Me.Label2)
        Me.Frame2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(8, 496)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(297, 113)
        Me.Frame2.TabIndex = 7
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "Grid, Graduation"
        '
        'Text1
        '
        Me.Text1.AcceptsReturn = True
        Me.Text1.AutoSize = False
        Me.Text1.BackColor = System.Drawing.SystemColors.Window
        Me.Text1.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Text1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text1.Location = New System.Drawing.Point(80, 72)
        Me.Text1.MaxLength = 0
        Me.Text1.Name = "Text1"
        Me.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text1.Size = New System.Drawing.Size(73, 18)
        Me.Text1.TabIndex = 29
        Me.Text1.Text = "10"
        '
        'Check7
        '
        Me.Check7.BackColor = System.Drawing.SystemColors.Control
        Me.Check7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check7.Location = New System.Drawing.Point(16, 48)
        Me.Check7.Name = "Check7"
        Me.Check7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check7.Size = New System.Drawing.Size(153, 17)
        Me.Check7.TabIndex = 22
        Me.Check7.Text = "Display Coordinates"
        '
        'Frame7
        '
        Me.Frame7.BackColor = System.Drawing.SystemColors.Control
        Me.Frame7.Controls.Add(Me._Option2_2)
        Me.Frame7.Controls.Add(Me._Option2_1)
        Me.Frame7.Controls.Add(Me._Option2_0)
        Me.Frame7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame7.Location = New System.Drawing.Point(200, 16)
        Me.Frame7.Name = "Frame7"
        Me.Frame7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame7.Size = New System.Drawing.Size(80, 89)
        Me.Frame7.TabIndex = 10
        Me.Frame7.TabStop = False
        Me.Frame7.Text = "Units"
        '
        '_Option2_2
        '
        Me._Option2_2.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_2, CType(2, Short))
        Me._Option2_2.Location = New System.Drawing.Point(8, 64)
        Me._Option2_2.Name = "_Option2_2"
        Me._Option2_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_2.Size = New System.Drawing.Size(56, 12)
        Me._Option2_2.TabIndex = 18
        Me._Option2_2.TabStop = True
        Me._Option2_2.Text = "Inches"
        '
        '_Option2_1
        '
        Me._Option2_1.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_1, CType(1, Short))
        Me._Option2_1.Location = New System.Drawing.Point(8, 40)
        Me._Option2_1.Name = "_Option2_1"
        Me._Option2_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_1.Size = New System.Drawing.Size(48, 12)
        Me._Option2_1.TabIndex = 17
        Me._Option2_1.TabStop = True
        Me._Option2_1.Text = "mm"
        '
        '_Option2_0
        '
        Me._Option2_0.BackColor = System.Drawing.SystemColors.Control
        Me._Option2_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option2_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option2_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option2.SetIndex(Me._Option2_0, CType(0, Short))
        Me._Option2_0.Location = New System.Drawing.Point(8, 16)
        Me._Option2_0.Name = "_Option2_0"
        Me._Option2_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option2_0.Size = New System.Drawing.Size(56, 12)
        Me._Option2_0.TabIndex = 16
        Me._Option2_0.TabStop = True
        Me._Option2_0.Text = "Pixel"
        '
        'Check5
        '
        Me.Check5.BackColor = System.Drawing.SystemColors.Control
        Me.Check5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check5.Location = New System.Drawing.Point(16, 32)
        Me.Check5.Name = "Check5"
        Me.Check5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check5.Size = New System.Drawing.Size(145, 17)
        Me.Check5.TabIndex = 9
        Me.Check5.Text = "Display Graduation"
        '
        'Check6
        '
        Me.Check6.BackColor = System.Drawing.SystemColors.Control
        Me.Check6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check6.Location = New System.Drawing.Point(16, 16)
        Me.Check6.Name = "Check6"
        Me.Check6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check6.Size = New System.Drawing.Size(137, 17)
        Me.Check6.TabIndex = 8
        Me.Check6.Text = "Display Grid"
        '
        'Label2
        '
        Me.Label2.BackColor = System.Drawing.SystemColors.Control
        Me.Label2.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label2.Location = New System.Drawing.Point(8, 75)
        Me.Label2.Name = "Label2"
        Me.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label2.Size = New System.Drawing.Size(73, 17)
        Me.Label2.TabIndex = 31
        Me.Label2.Text = "Grid Width"
        '
        'Frame6
        '
        Me.Frame6.BackColor = System.Drawing.SystemColors.Control
        Me.Frame6.Controls.Add(Me.Check4)
        Me.Frame6.Controls.Add(Me.Check3)
        Me.Frame6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame6.Location = New System.Drawing.Point(312, 448)
        Me.Frame6.Name = "Frame6"
        Me.Frame6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame6.Size = New System.Drawing.Size(137, 65)
        Me.Frame6.TabIndex = 6
        Me.Frame6.TabStop = False
        Me.Frame6.Text = "Pan Window"
        '
        'Check4
        '
        Me.Check4.BackColor = System.Drawing.SystemColors.Control
        Me.Check4.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check4.Location = New System.Drawing.Point(16, 40)
        Me.Check4.Name = "Check4"
        Me.Check4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check4.Size = New System.Drawing.Size(113, 12)
        Me.Check4.TabIndex = 21
        Me.Check4.Text = "Close Button"
        '
        'Check3
        '
        Me.Check3.BackColor = System.Drawing.SystemColors.Control
        Me.Check3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Check3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Check3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Check3.Location = New System.Drawing.Point(16, 16)
        Me.Check3.Name = "Check3"
        Me.Check3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check3.Size = New System.Drawing.Size(81, 17)
        Me.Check3.TabIndex = 20
        Me.Check3.Text = "Display"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.Add(Me.HScroll1)
        Me.Frame1.Controls.Add(Me.Label1)
        Me.Frame1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame1.Location = New System.Drawing.Point(8, 432)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(297, 57)
        Me.Frame1.TabIndex = 4
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "Display Scale"
        '
        'HScroll1
        '
        Me.HScroll1.Cursor = System.Windows.Forms.Cursors.Default
        Me.HScroll1.LargeChange = 1
        Me.HScroll1.Location = New System.Drawing.Point(72, 24)
        Me.HScroll1.Maximum = 29
        Me.HScroll1.Minimum = 1
        Me.HScroll1.Name = "HScroll1"
        Me.HScroll1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.HScroll1.Size = New System.Drawing.Size(201, 17)
        Me.HScroll1.TabIndex = 5
        Me.HScroll1.TabStop = True
        Me.HScroll1.Value = 10
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.SystemColors.Control
        Me.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
        Me.Label1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Label1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Label1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Label1.Location = New System.Drawing.Point(8, 24)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(49, 17)
        Me.Label1.TabIndex = 30
        Me.Label1.Text = "1"
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Controls.Add(Me._Option1_4)
        Me.Frame3.Controls.Add(Me._Option1_3)
        Me.Frame3.Controls.Add(Me._Option1_0)
        Me.Frame3.Controls.Add(Me._Option1_2)
        Me.Frame3.Controls.Add(Me._Option1_1)
        Me.Frame3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(8, 376)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(401, 49)
        Me.Frame3.TabIndex = 0
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "Display Mode"
        '
        '_Option1_4
        '
        Me._Option1_4.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_4.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_4.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_4.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_4, CType(4, Short))
        Me._Option1_4.Location = New System.Drawing.Point(304, 24)
        Me._Option1_4.Name = "_Option1_4"
        Me._Option1_4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_4.Size = New System.Drawing.Size(89, 12)
        Me._Option1_4.TabIndex = 37
        Me._Option1_4.TabStop = True
        Me._Option1_4.Text = "Fit to Height"
        '
        '_Option1_3
        '
        Me._Option1_3.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_3.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_3, CType(3, Short))
        Me._Option1_3.Location = New System.Drawing.Point(216, 24)
        Me._Option1_3.Name = "_Option1_3"
        Me._Option1_3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_3.Size = New System.Drawing.Size(89, 12)
        Me._Option1_3.TabIndex = 36
        Me._Option1_3.TabStop = True
        Me._Option1_3.Text = "Fit to Width"
        '
        '_Option1_0
        '
        Me._Option1_0.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_0.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_0.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_0.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_0, CType(0, Short))
        Me._Option1_0.Location = New System.Drawing.Point(8, 24)
        Me._Option1_0.Name = "_Option1_0"
        Me._Option1_0.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_0.Size = New System.Drawing.Size(57, 12)
        Me._Option1_0.TabIndex = 3
        Me._Option1_0.TabStop = True
        Me._Option1_0.Text = "Scale"
        '
        '_Option1_2
        '
        Me._Option1_2.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_2.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_2, CType(2, Short))
        Me._Option1_2.Location = New System.Drawing.Point(136, 24)
        Me._Option1_2.Name = "_Option1_2"
        Me._Option1_2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_2.Size = New System.Drawing.Size(81, 12)
        Me._Option1_2.TabIndex = 2
        Me._Option1_2.TabStop = True
        Me._Option1_2.Text = "Actual Size"
        '
        '_Option1_1
        '
        Me._Option1_1.BackColor = System.Drawing.SystemColors.Control
        Me._Option1_1.Cursor = System.Windows.Forms.Cursors.Default
        Me._Option1_1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me._Option1_1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Option1.SetIndex(Me._Option1_1, CType(1, Short))
        Me._Option1_1.Location = New System.Drawing.Point(72, 24)
        Me._Option1_1.Name = "_Option1_1"
        Me._Option1_1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me._Option1_1.Size = New System.Drawing.Size(57, 12)
        Me._Option1_1.TabIndex = 1
        Me._Option1_1.TabStop = True
        Me._Option1_1.Text = "Stretch"
        '
        'Check9
        '
        '
        'Option1
        '
        '
        'Option2
        '
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.SystemColors.Control
        Me.ClientSize = New System.Drawing.Size(594, 618)
        Me.Controls.Add(Me.ImageKit1)
        Me.Controls.Add(Me.Check11)
        Me.Controls.Add(Me.Frame9)
        Me.Controls.Add(Me.Command4)
        Me.Controls.Add(Me.Frame8)
        Me.Controls.Add(Me.Frame5)
        Me.Controls.Add(Me.Frame2)
        Me.Controls.Add(Me.Frame6)
        Me.Controls.Add(Me.Frame1)
        Me.Controls.Add(Me.Frame3)
        Me.Cursor = System.Windows.Forms.Cursors.Default
        Me.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.Location = New System.Drawing.Point(2, 21)
        Me.Name = "Form1"
        Me.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Gerneral Display Features"
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.Frame9.ResumeLayout(False)
        Me.Frame8.ResumeLayout(False)
        Me.Frame5.ResumeLayout(False)
        Me.Frame2.ResumeLayout(False)
        Me.Frame7.ResumeLayout(False)
        Me.Frame6.ResumeLayout(False)
        Me.Frame1.ResumeLayout(False)
        Me.Frame3.ResumeLayout(False)
        CType(Me.Check9, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Option1, System.ComponentModel.ISupportInitialize).EndInit()
        CType(Me.Option2, System.ComponentModel.ISupportInitialize).EndInit()
        Me.ResumeLayout(False)

    End Sub
#End Region 
#Region "Upgrade Support "
	Private Shared m_vb6FormDefInstance As Form1
	Private Shared m_InitializingDefInstance As Boolean
	Public Shared Property DefInstance() As Form1
		Get
			If m_vb6FormDefInstance Is Nothing OrElse m_vb6FormDefInstance.IsDisposed Then
				m_InitializingDefInstance = True
				m_vb6FormDefInstance = New Form1()
				m_InitializingDefInstance = False
			End If
			DefInstance = m_vb6FormDefInstance
		End Get
		Set
			m_vb6FormDefInstance = Value
		End Set
	End Property
#End Region 
	Dim LayerImageCount As Short
	Dim Coordinate As IMAGEKIT7Lib.UnitConstants
    Dim ShowMode As IMAGEKIT7Lib.DispModeConstants

	Private Sub Check1_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check1.CheckStateChanged
		If Check1.CheckState = 1 Then
			ImageKit1.ScrollBar = True
		Else
			ImageKit1.ScrollBar = False
		End If
	End Sub
	
	Private Sub Check2_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check2.CheckStateChanged
		If Check2.CheckState = 1 Then
			ImageKit1.MouseDragImage = True
		Else
			ImageKit1.MouseDragImage = False
		End If
	End Sub

	Private Sub Check3_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check3.CheckStateChanged
		ImageKit1.PanWindow.Show(Check3.CheckState)
	End Sub

	Private Sub Check4_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check4.CheckStateChanged
		ImageKit1.PanWindow.CloseBox = Check4.CheckState
	End Sub
	
	Private Sub Check5_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check5.CheckStateChanged
		If Check5.CheckState = 1 Then
			ImageKit1.Grad = Coordinate
		Else
			ImageKit1.Grad = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub

	Private Sub Check6_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check6.CheckStateChanged
		If Check6.CheckState = 1 Then
			ImageKit1.GridSpace = CDbl(Text1.Text)
			ImageKit1.Grid = Coordinate
		Else
			ImageKit1.Grid = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub
	
	Private Sub Check7_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check7.CheckStateChanged
		If Check7.CheckState = 1 Then
			ImageKit1.ToolTip = Coordinate
		Else
			ImageKit1.ToolTip = IMAGEKIT7Lib.UnitConstants.ikNone
		End If
	End Sub

	Private Sub Check8_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check8.CheckStateChanged
		If Check8.CheckState = 1 Then
			ImageKit1.ShowInDisp = True
			ImageKit1.ShowInPanWindow = True
		Else
			ImageKit1.ShowInDisp = False
			ImageKit1.ShowInPanWindow = False
		End If
	End Sub

	Private Sub Check9_CheckStateChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Check9.CheckStateChanged
		Dim Index As Short = Check9.GetIndex(eventSender)
		If Check9(Index).CheckState = 1 Then
			ImageKit1.get_Layer(Index).ShowInDisp = True
			ImageKit1.get_Layer(Index).ShowInPanWindow = True
		Else
			ImageKit1.get_Layer(Index).ShowInDisp = False
			ImageKit1.get_Layer(Index).ShowInPanWindow = False
		End If
	End Sub
	
	' load the base image
	Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
		If ImageKit1.File.OpenFileDialog = False Then
			Exit Sub
		End If
		
		'set the image number of the base image
		ImageKit1.LayerNo = -1
		
		'load the image file
		Form2.DefInstance.Show()
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		Form2.DefInstance.Close()
		
		ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale)
		Check8.Enabled = True
		Check8.CheckState = System.Windows.Forms.CheckState.Checked
	End Sub
	
	'load image layers
	Private Sub Command2_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command2.Click
		If ImageKit1.File.OpenFileDialog = False Then
			Exit Sub
		End If
		
		'set the current image's layer number
		ImageKit1.LayerNo = LayerImageCount
		
		ImageKit1.get_Layer(LayerImageCount).Transparent = False
		ImageKit1.get_Layer(LayerImageCount).TransRed = 0
		ImageKit1.get_Layer(LayerImageCount).TransGreen = 0
		ImageKit1.get_Layer(LayerImageCount).TransBlue = 0
		' set red to be transparent
		If LayerImageCount = 0 Then
			ImageKit1.get_Layer(LayerImageCount).Transparent = True
			ImageKit1.get_Layer(LayerImageCount).TransRed = 255
			ImageKit1.get_Layer(LayerImageCount).TransGreen = 0
			ImageKit1.get_Layer(LayerImageCount).TransBlue = 0
		End If
		'set green to be transparent
		If LayerImageCount = 1 Then
			ImageKit1.get_Layer(LayerImageCount).Transparent = True
			ImageKit1.get_Layer(LayerImageCount).TransRed = 0
			ImageKit1.get_Layer(LayerImageCount).TransGreen = 255
			ImageKit1.get_Layer(LayerImageCount).TransBlue = 0
		End If
		' set blue to be transparent
		If LayerImageCount = 2 Then
			ImageKit1.get_Layer(LayerImageCount).Transparent = True
			ImageKit1.get_Layer(LayerImageCount).TransRed = 0
			ImageKit1.get_Layer(LayerImageCount).TransGreen = 0
			ImageKit1.get_Layer(LayerImageCount).TransBlue = 255
		End If
		
		Form2.DefInstance.Show()
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		Form2.DefInstance.Close()
		
		ImageKit1.Display(ShowMode)
		
		Check9(LayerImageCount).Enabled = True
		Check9(LayerImageCount).CheckState = System.Windows.Forms.CheckState.Checked
		
		LayerImageCount = LayerImageCount + 1
		If LayerImageCount > 4 Then
			LayerImageCount = 0
		End If
	End Sub
	
	'end
	Private Sub Command4_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command4.Click
		Me.Close()
	End Sub
	
	Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		Dim n As Short
		
		Check8.Enabled = False
		For n = 0 To 4
			Check9(n).Enabled = False
		Next n
		
		ShowMode = IMAGEKIT7Lib.DispModeConstants.ikScale ' scale display mode
		Option1(0).Checked = True
		
		Coordinate = IMAGEKIT7Lib.UnitConstants.ikPixel ' units of measurement are pixels
		Option2(0).Checked = True
		
		LayerImageCount = 0
	End Sub
	
	'changing the display scale
    Private Sub HScroll1_Change(ByVal newScrollValue As Integer)
        Dim dScale As Double

        Option1(2).Checked = True

        If newScrollValue <= 10 Then
            dScale = newScrollValue / 10.0#
        Else
            dScale = newScrollValue - 10 + 1
        End If
        Label1.Text = CStr(dScale)

        ImageKit1.DispScaleX = dScale
        ImageKit1.DispScaleY = dScale
        ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikActualSize)
    End Sub

    Private Sub ImageKit1_GetDragDropFileName(ByVal eventSender As System.Object, ByVal eventArgs As AxIMAGEKIT7Lib._IImageKitEvents_GetDragDropFileNameEvent) Handles ImageKit1.GetDragDropFileName
        ImageKit1.File.FileName = eventArgs.fileName
        ImageKit1.File.LoadPage = eventArgs.page
        ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
        ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale)
    End Sub

    ' load file indicator
    Private Sub ImageKit1_Progress(ByVal eventSender As System.Object, ByVal eventArgs As AxIMAGEKIT7Lib._IImageKitEvents_ProgressEvent) Handles ImageKit1.Progress
        Form2.DefInstance.Label1.Text = CStr(eventArgs.percent)
        Form2.DefInstance.Label1.Refresh()
        System.Windows.Forms.Application.DoEvents()
    End Sub

    ' changing the display mode
    Private Sub Option1_CheckedChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Option1.CheckedChanged
        If eventSender.Checked Then
            Dim Index As Short = Option1.GetIndex(eventSender)
            If Index = 0 Then
                ShowMode = IMAGEKIT7Lib.DispModeConstants.ikScale
            End If
            If Index = 1 Then
                ShowMode = IMAGEKIT7Lib.DispModeConstants.ikStretch
            End If
            If Index = 2 Then
                ImageKit1.DispScaleX = Val(Label1.Text)
                ImageKit1.DispScaleY = Val(Label1.Text)
                ShowMode = IMAGEKIT7Lib.DispModeConstants.ikActualSize
            End If
            If Index = 3 Then
                ShowMode = IMAGEKIT7Lib.DispModeConstants.ikFitToWidth
            End If
            If Index = 4 Then
                ShowMode = IMAGEKIT7Lib.DispModeConstants.ikFitToHeight
            End If

            ImageKit1.Display(ShowMode)
        End If
    End Sub

    Private Sub Option2_CheckedChanged(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Option2.CheckedChanged
        If eventSender.Checked Then
            Dim Index As Short = Option2.GetIndex(eventSender)
            If Index = 0 Then
                Coordinate = IMAGEKIT7Lib.UnitConstants.ikPixel
            End If
            If Index = 1 Then
                Coordinate = IMAGEKIT7Lib.UnitConstants.ikmm
            End If
            If Index = 2 Then
                Coordinate = IMAGEKIT7Lib.UnitConstants.ikInch
            End If
        End If
    End Sub
    Private Sub HScroll1_Scroll(ByVal eventSender As System.Object, ByVal eventArgs As System.Windows.Forms.ScrollEventArgs) Handles HScroll1.Scroll
        Select Case eventArgs.Type
            Case System.Windows.Forms.ScrollEventType.EndScroll
                HScroll1_Change(eventArgs.NewValue)
        End Select
    End Sub
    'magnifying glass
    Private Sub ImageKit1_MouseMoveImage1(ByVal sender As Object, ByVal e As AxIMAGEKIT7Lib._IImageKitEvents_MouseMoveImageEvent) Handles ImageKit1.MouseMoveImage
        If Check11.CheckState <> 0 Then
            ImageKit1.Magnifier.Width = 100
            ImageKit1.Magnifier.Height = 100
            ImageKit1.Magnifier.Show(True, e.x, e.y, Val(Label1.Text) * 2)
        End If
    End Sub
End Class