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 Text1 As System.Windows.Forms.TextBox
	Public WithEvents ImageKit1 As AxIMAGEKIT7Lib.AxImageKit
	Public WithEvents Command19 As System.Windows.Forms.Button
	Public WithEvents Command18 As System.Windows.Forms.Button
	Public WithEvents Command17 As System.Windows.Forms.Button
	Public WithEvents Command16 As System.Windows.Forms.Button
	Public WithEvents Command15 As System.Windows.Forms.Button
	Public WithEvents Command14 As System.Windows.Forms.Button
	Public WithEvents Command13 As System.Windows.Forms.Button
	Public WithEvents Command12 As System.Windows.Forms.Button
	Public WithEvents Command11 As System.Windows.Forms.Button
	Public WithEvents Command10 As System.Windows.Forms.Button
	Public WithEvents Command9 As System.Windows.Forms.Button
	Public WithEvents Command8 As System.Windows.Forms.Button
	Public WithEvents Command7 As System.Windows.Forms.Button
	Public WithEvents Command6 As System.Windows.Forms.Button
	Public WithEvents Command5 As System.Windows.Forms.Button
	Public WithEvents Command4 As System.Windows.Forms.Button
	Public WithEvents Command2 As System.Windows.Forms.Button
    Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents Command3 As System.Windows.Forms.Button
	Public WithEvents Command1 As System.Windows.Forms.Button
    '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.
    Friend WithEvents RadioButton1 As System.Windows.Forms.RadioButton
    Friend WithEvents RadioButton2 As System.Windows.Forms.RadioButton
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.Text1 = New System.Windows.Forms.TextBox
        Me.ImageKit1 = New AxIMAGEKIT7Lib.AxImageKit
        Me.Command19 = New System.Windows.Forms.Button
        Me.Command18 = New System.Windows.Forms.Button
        Me.Command17 = New System.Windows.Forms.Button
        Me.Command16 = New System.Windows.Forms.Button
        Me.Command15 = New System.Windows.Forms.Button
        Me.Command14 = New System.Windows.Forms.Button
        Me.Command13 = New System.Windows.Forms.Button
        Me.Command12 = New System.Windows.Forms.Button
        Me.Command11 = New System.Windows.Forms.Button
        Me.Command10 = New System.Windows.Forms.Button
        Me.Command9 = New System.Windows.Forms.Button
        Me.Command8 = New System.Windows.Forms.Button
        Me.Command7 = New System.Windows.Forms.Button
        Me.Command6 = New System.Windows.Forms.Button
        Me.Command5 = New System.Windows.Forms.Button
        Me.Command4 = New System.Windows.Forms.Button
        Me.Command2 = New System.Windows.Forms.Button
        Me.Frame1 = New System.Windows.Forms.GroupBox
        Me.RadioButton2 = New System.Windows.Forms.RadioButton
        Me.RadioButton1 = New System.Windows.Forms.RadioButton
        Me.Command3 = New System.Windows.Forms.Button
        Me.Command1 = New System.Windows.Forms.Button
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.Frame1.SuspendLayout()
        Me.SuspendLayout()
        '
        'Text1
        '
        Me.Text1.AcceptsReturn = True
        Me.Text1.AutoSize = False
        Me.Text1.BackColor = System.Drawing.Color.FromArgb(CType(255, Byte), CType(255, Byte), CType(192, Byte))
        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.Color.FromArgb(CType(192, Byte), CType(0, Byte), CType(0, Byte))
        Me.Text1.Location = New System.Drawing.Point(8, 0)
        Me.Text1.MaxLength = 0
        Me.Text1.Multiline = True
        Me.Text1.Name = "Text1"
        Me.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text1.Size = New System.Drawing.Size(537, 64)
        Me.Text1.TabIndex = 23
        Me.Text1.Text = "This sample illustrates some of the effect filters and transformations that can b" & _
        "e done with the ImageKit. In this sample, transformations are applied to the tot" & _
        "al image. The effect filters are applied to the total image unless an area has b" & _
        "een selected with the mouse. For more information about effect filters and trans" & _
        "formations, please refer to the Effect interface in the ImageKit Help documentat" & _
        "ion."
        '
        'ImageKit1
        '
        Me.ImageKit1.Location = New System.Drawing.Point(16, 72)
        Me.ImageKit1.Name = "ImageKit1"
        Me.ImageKit1.OcxState = CType(resources.GetObject("ImageKit1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.ImageKit1.Size = New System.Drawing.Size(433, 313)
        Me.ImageKit1.TabIndex = 22
        '
        'Command19
        '
        Me.Command19.BackColor = System.Drawing.SystemColors.Control
        Me.Command19.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command19.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command19.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command19.Location = New System.Drawing.Point(360, 456)
        Me.Command19.Name = "Command19"
        Me.Command19.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command19.Size = New System.Drawing.Size(89, 41)
        Me.Command19.TabIndex = 21
        Me.Command19.Text = "Canvas"
        '
        'Command18
        '
        Me.Command18.BackColor = System.Drawing.SystemColors.Control
        Me.Command18.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command18.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command18.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command18.Location = New System.Drawing.Point(272, 456)
        Me.Command18.Name = "Command18"
        Me.Command18.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command18.Size = New System.Drawing.Size(89, 41)
        Me.Command18.TabIndex = 20
        Me.Command18.Text = "Lens"
        '
        'Command17
        '
        Me.Command17.BackColor = System.Drawing.SystemColors.Control
        Me.Command17.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command17.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command17.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command17.Location = New System.Drawing.Point(184, 456)
        Me.Command17.Name = "Command17"
        Me.Command17.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command17.Size = New System.Drawing.Size(89, 41)
        Me.Command17.TabIndex = 19
        Me.Command17.Text = "WhirlPinch"
        '
        'Command16
        '
        Me.Command16.BackColor = System.Drawing.SystemColors.Control
        Me.Command16.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command16.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command16.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command16.Location = New System.Drawing.Point(96, 456)
        Me.Command16.Name = "Command16"
        Me.Command16.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command16.Size = New System.Drawing.Size(89, 41)
        Me.Command16.TabIndex = 18
        Me.Command16.Text = "Ripple"
        '
        'Command15
        '
        Me.Command15.BackColor = System.Drawing.SystemColors.Control
        Me.Command15.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command15.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command15.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command15.Location = New System.Drawing.Point(8, 456)
        Me.Command15.Name = "Command15"
        Me.Command15.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command15.Size = New System.Drawing.Size(89, 41)
        Me.Command15.TabIndex = 17
        Me.Command15.Text = "Wave"
        '
        'Command14
        '
        Me.Command14.BackColor = System.Drawing.SystemColors.Control
        Me.Command14.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command14.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command14.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command14.Location = New System.Drawing.Point(456, 344)
        Me.Command14.Name = "Command14"
        Me.Command14.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command14.Size = New System.Drawing.Size(97, 25)
        Me.Command14.TabIndex = 16
        Me.Command14.Text = "Clear Selection"
        '
        'Command13
        '
        Me.Command13.BackColor = System.Drawing.SystemColors.Control
        Me.Command13.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command13.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command13.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command13.Location = New System.Drawing.Point(360, 424)
        Me.Command13.Name = "Command13"
        Me.Command13.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command13.Size = New System.Drawing.Size(89, 33)
        Me.Command13.TabIndex = 15
        Me.Command13.Text = "MotionBlur"
        '
        'Command12
        '
        Me.Command12.BackColor = System.Drawing.SystemColors.Control
        Me.Command12.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command12.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command12.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command12.Location = New System.Drawing.Point(272, 424)
        Me.Command12.Name = "Command12"
        Me.Command12.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command12.Size = New System.Drawing.Size(89, 33)
        Me.Command12.TabIndex = 14
        Me.Command12.Text = "GrayScale"
        '
        'Command11
        '
        Me.Command11.BackColor = System.Drawing.SystemColors.Control
        Me.Command11.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command11.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command11.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command11.Location = New System.Drawing.Point(184, 424)
        Me.Command11.Name = "Command11"
        Me.Command11.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command11.Size = New System.Drawing.Size(89, 33)
        Me.Command11.TabIndex = 13
        Me.Command11.Text = "AntiAlias"
        '
        'Command10
        '
        Me.Command10.BackColor = System.Drawing.SystemColors.Control
        Me.Command10.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command10.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command10.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command10.Location = New System.Drawing.Point(96, 424)
        Me.Command10.Name = "Command10"
        Me.Command10.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command10.Size = New System.Drawing.Size(89, 33)
        Me.Command10.TabIndex = 12
        Me.Command10.Text = "Resize"
        '
        'Command9
        '
        Me.Command9.BackColor = System.Drawing.SystemColors.Control
        Me.Command9.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command9.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command9.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command9.Location = New System.Drawing.Point(8, 424)
        Me.Command9.Name = "Command9"
        Me.Command9.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command9.Size = New System.Drawing.Size(89, 33)
        Me.Command9.TabIndex = 11
        Me.Command9.Text = "Blur"
        '
        'Command8
        '
        Me.Command8.BackColor = System.Drawing.SystemColors.Control
        Me.Command8.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command8.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command8.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command8.Location = New System.Drawing.Point(360, 392)
        Me.Command8.Name = "Command8"
        Me.Command8.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command8.Size = New System.Drawing.Size(89, 33)
        Me.Command8.TabIndex = 10
        Me.Command8.Text = "Mosaic"
        '
        'Command7
        '
        Me.Command7.BackColor = System.Drawing.SystemColors.Control
        Me.Command7.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command7.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command7.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command7.Location = New System.Drawing.Point(272, 392)
        Me.Command7.Name = "Command7"
        Me.Command7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command7.Size = New System.Drawing.Size(89, 33)
        Me.Command7.TabIndex = 9
        Me.Command7.Text = "Rotation"
        '
        'Command6
        '
        Me.Command6.BackColor = System.Drawing.SystemColors.Control
        Me.Command6.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command6.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command6.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command6.Location = New System.Drawing.Point(184, 392)
        Me.Command6.Name = "Command6"
        Me.Command6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command6.Size = New System.Drawing.Size(89, 33)
        Me.Command6.TabIndex = 8
        Me.Command6.Text = "Emboss"
        '
        'Command5
        '
        Me.Command5.BackColor = System.Drawing.SystemColors.Control
        Me.Command5.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command5.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command5.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command5.Location = New System.Drawing.Point(96, 392)
        Me.Command5.Name = "Command5"
        Me.Command5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command5.Size = New System.Drawing.Size(89, 33)
        Me.Command5.TabIndex = 7
        Me.Command5.Text = "Outline"
        '
        '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(8, 392)
        Me.Command4.Name = "Command4"
        Me.Command4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command4.Size = New System.Drawing.Size(89, 33)
        Me.Command4.TabIndex = 6
        Me.Command4.Text = "Sharpen"
        '
        '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(456, 120)
        Me.Command2.Name = "Command2"
        Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command2.Size = New System.Drawing.Size(97, 33)
        Me.Command2.TabIndex = 5
        Me.Command2.Text = "Save as Bmp"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.Add(Me.RadioButton2)
        Me.Frame1.Controls.Add(Me.RadioButton1)
        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(456, 232)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(97, 64)
        Me.Frame1.TabIndex = 2
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "Display Mode"
        '
        'RadioButton2
        '
        Me.RadioButton2.Location = New System.Drawing.Point(8, 32)
        Me.RadioButton2.Name = "RadioButton2"
        Me.RadioButton2.Size = New System.Drawing.Size(80, 16)
        Me.RadioButton2.TabIndex = 1
        Me.RadioButton2.Text = "Actual Size"
        '
        'RadioButton1
        '
        Me.RadioButton1.Location = New System.Drawing.Point(8, 16)
        Me.RadioButton1.Name = "RadioButton1"
        Me.RadioButton1.Size = New System.Drawing.Size(64, 16)
        Me.RadioButton1.TabIndex = 0
        Me.RadioButton1.Text = "Scale"
        '
        'Command3
        '
        Me.Command3.BackColor = System.Drawing.SystemColors.Control
        Me.Command3.Cursor = System.Windows.Forms.Cursors.Default
        Me.Command3.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Command3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Command3.Location = New System.Drawing.Point(456, 168)
        Me.Command3.Name = "Command3"
        Me.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command3.Size = New System.Drawing.Size(97, 33)
        Me.Command3.TabIndex = 1
        Me.Command3.Text = "End"
        '
        '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(456, 64)
        Me.Command1.Name = "Command1"
        Me.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command1.Size = New System.Drawing.Size(97, 33)
        Me.Command1.TabIndex = 0
        Me.Command1.Text = "Load"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.SystemColors.Control
        Me.ClientSize = New System.Drawing.Size(560, 502)
        Me.Controls.Add(Me.Text1)
        Me.Controls.Add(Me.ImageKit1)
        Me.Controls.Add(Me.Command19)
        Me.Controls.Add(Me.Command18)
        Me.Controls.Add(Me.Command17)
        Me.Controls.Add(Me.Command16)
        Me.Controls.Add(Me.Command15)
        Me.Controls.Add(Me.Command14)
        Me.Controls.Add(Me.Command13)
        Me.Controls.Add(Me.Command12)
        Me.Controls.Add(Me.Command11)
        Me.Controls.Add(Me.Command10)
        Me.Controls.Add(Me.Command9)
        Me.Controls.Add(Me.Command8)
        Me.Controls.Add(Me.Command7)
        Me.Controls.Add(Me.Command6)
        Me.Controls.Add(Me.Command5)
        Me.Controls.Add(Me.Command4)
        Me.Controls.Add(Me.Command2)
        Me.Controls.Add(Me.Frame1)
        Me.Controls.Add(Me.Command3)
        Me.Controls.Add(Me.Command1)
        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.Location = New System.Drawing.Point(3, 22)
        Me.Name = "Form1"
        Me.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen
        Me.Text = "Form1"
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).EndInit()
        Me.Frame1.ResumeLayout(False)
        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 ret As Boolean
	Dim x(3) As Integer
	Dim y(3) As Integer
	Dim ShowMode As IMAGEKIT7Lib.DispModeConstants
	
	Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
		Dim ret As Boolean
		
		'display the Open file dialog
		If ImageKit1.File.OpenFileDialog = False Then
			Exit Sub
		End If
		
		' load image
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		
		'check to see that it is a raster image
		If ImageKit1.ImageKind <> IMAGEKIT7Lib.ImageKindConstants.ikRasterImage Then
			ImageKit1.FreeMemory(ImageKit1.ImageHandle)
		End If
		
		Form2.DefInstance.Close()
		
		'display image
		ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale)
	End Sub
	
	Private Sub Command10_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command10.Click
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		' resize image
		Form2.DefInstance.Show()
		ret = ImageKit1.Effect.Resize(500, 500, True)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command11_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command11.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply antialias
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.AntiAlias(x(0), y(0), n)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command12_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command12.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply chroma
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Chroma(x(0), y(0), n, -100)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command13_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command13.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		'apply motion blur
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.MotionBlur(x(0), y(0), n, 2, 30, 20)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command14_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command14.Click
		ImageKit1.RectLeft = 0
		ImageKit1.RectRight = 0
		ImageKit1.RectTop = 0
		ImageKit1.RectBottom = 0
	End Sub
	
	Private Sub Command15_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command15.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply wave effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Waves(x(0), y(0), n, 0, 0, 100, 10, 0.5, 1, 0, 0, 0)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command16_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command16.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply ripple effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Ripple(x(0), y(0), n, 20, 10, 0.5, False, False, 0, 0, 0)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command17_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command17.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply whirl pinch effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.WhirlPinch(x(0), y(0), n, 360, 1, 1, 0, 0, 0)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command18_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command18.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply lens effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Lens(x(0), y(0), n, 3#, False, 0, 0, 0)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command19_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command19.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply canvas effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Canvas(x(0), y(0), n, 1, 20)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command2_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command2.Click
		Dim ret As Boolean
		'save the image as a bmp image...
        ImageKit1.File.FileName = Application.StartupPath & "\test.bmp"
		ret = ImageKit1.File.SaveFile(IMAGEKIT7Lib.SaveFileConstants.ikSaveBMP, 0)
		
		If ret <> False Then
			MsgBox("Image saved in the following directory:" & vbCrLf & ImageKit1.File.FileName)
		Else
			MsgBox("Unable to save image")
		End If
		Form2.DefInstance.Close()
	End Sub
	
	Private Sub Command3_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command3.Click
		Me.Close()
	End Sub
	
	Private Sub Command4_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command4.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' sharpen image
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Sharp(x(0), y(0), n, 3)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command5_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command5.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply outline effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Outline(x(0), y(0), n, 0, 0, 10)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command6_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command6.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' emboss image
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Emboss(x(0), y(0), n, 0, 3, 128)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command7_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command7.Click
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		' rotate image
		Form2.DefInstance.Show()
		ret = ImageKit1.Effect.Rotation(3000, False, False, True, 255, 255, 255, False)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command8_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command8.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply mosaic effect
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Mosaic(x(0), y(0), n, 10, 10)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Command9_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command9.Click
		Dim n As Short
		
		If ImageKit1.ImageHandle = 0 Then
			Exit Sub
		End If
		
		x(0) = ImageKit1.RectLeft : y(0) = ImageKit1.RectTop
		x(1) = ImageKit1.RectRight : y(1) = ImageKit1.RectTop
		x(2) = ImageKit1.RectRight : y(2) = ImageKit1.RectBottom
		x(3) = ImageKit1.RectLeft : y(3) = ImageKit1.RectBottom
		n = 4
		
		' apply blur
		Form2.DefInstance.Show()
		ImageKit1.Effect.InOut = IMAGEKIT7Lib.InOutSelectModeConstants.ikInside
		ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectPolygon
		If ImageKit1.RectLeft = 0 And ImageKit1.RectTop = 0 And ImageKit1.RectRight = 0 And ImageKit1.RectBottom = 0 Then
			ImageKit1.Effect.SelectMode = IMAGEKIT7Lib.AreaSelectModeConstants.ikEffectAll
		End If
		ret = ImageKit1.Effect.Blur(x(0), y(0), n, 5)
		Form2.DefInstance.Close()
		If ret = False Then
			Exit Sub
		End If
		
		ImageKit1.CtlRefresh()
	End Sub
	
	Private Sub Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
        RadioButton1.Checked = True
		ShowMode = IMAGEKIT7Lib.DispModeConstants.ikScale
		ImageKit1.RectDraw = True
	End Sub
	
	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
	

    Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged
        ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale)
    End Sub

    Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
        ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikActualSize)
    End Sub
End Class