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 Check7 As System.Windows.Forms.CheckBox
	Public WithEvents Check6 As System.Windows.Forms.CheckBox
	Public WithEvents Check3 As System.Windows.Forms.CheckBox
	Public WithEvents Check2 As System.Windows.Forms.CheckBox
	Public WithEvents Frame3 As System.Windows.Forms.GroupBox
	Public WithEvents Check5 As System.Windows.Forms.CheckBox
	Public WithEvents Check4 As System.Windows.Forms.CheckBox
	Public WithEvents Combo1 As System.Windows.Forms.ComboBox
	Public WithEvents Check1 As System.Windows.Forms.CheckBox
	Public WithEvents Label1 As System.Windows.Forms.Label
	Public WithEvents Frame2 As System.Windows.Forms.GroupBox
	Public WithEvents Text2 As System.Windows.Forms.TextBox
	Public WithEvents Frame1 As System.Windows.Forms.GroupBox
	Public WithEvents Text1 As System.Windows.Forms.TextBox
	Public WithEvents Command3 As System.Windows.Forms.Button
	Public WithEvents ImageKit1 As AxIMAGEKIT7Lib.AxImageKit
	Public WithEvents Command2 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.
	<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))
        Me.Check7 = New System.Windows.Forms.CheckBox
        Me.Check6 = New System.Windows.Forms.CheckBox
        Me.Check3 = New System.Windows.Forms.CheckBox
        Me.Check2 = New System.Windows.Forms.CheckBox
        Me.Frame3 = New System.Windows.Forms.GroupBox
        Me.Frame2 = New System.Windows.Forms.GroupBox
        Me.Check5 = New System.Windows.Forms.CheckBox
        Me.Check4 = New System.Windows.Forms.CheckBox
        Me.Combo1 = New System.Windows.Forms.ComboBox
        Me.Check1 = New System.Windows.Forms.CheckBox
        Me.Label1 = New System.Windows.Forms.Label
        Me.Frame1 = New System.Windows.Forms.GroupBox
        Me.Text2 = New System.Windows.Forms.TextBox
        Me.Text1 = New System.Windows.Forms.TextBox
        Me.Command3 = New System.Windows.Forms.Button
        Me.ImageKit1 = New AxIMAGEKIT7Lib.AxImageKit
        Me.Command2 = New System.Windows.Forms.Button
        Me.Command1 = New System.Windows.Forms.Button
        Me.Frame2.SuspendLayout()
        Me.Frame1.SuspendLayout()
        CType(Me.ImageKit1, System.ComponentModel.ISupportInitialize).BeginInit()
        Me.SuspendLayout()
        '
        '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(464, 248)
        Me.Check7.Name = "Check7"
        Me.Check7.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check7.Size = New System.Drawing.Size(97, 17)
        Me.Check7.TabIndex = 17
        Me.Check7.Text = "Strikethrough"
        '
        '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(464, 232)
        Me.Check6.Name = "Check6"
        Me.Check6.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check6.Size = New System.Drawing.Size(73, 17)
        Me.Check6.TabIndex = 16
        Me.Check6.Text = "Underline"
        '
        '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(480, 352)
        Me.Check3.Name = "Check3"
        Me.Check3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check3.Size = New System.Drawing.Size(81, 17)
        Me.Check3.TabIndex = 15
        Me.Check3.Text = "Clip Text"
        '
        '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(480, 328)
        Me.Check2.Name = "Check2"
        Me.Check2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check2.Size = New System.Drawing.Size(81, 25)
        Me.Check2.TabIndex = 14
        Me.Check2.Text = "Scale Fonts"
        '
        'Frame3
        '
        Me.Frame3.BackColor = System.Drawing.SystemColors.Control
        Me.Frame3.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame3.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame3.Location = New System.Drawing.Point(464, 312)
        Me.Frame3.Name = "Frame3"
        Me.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame3.Size = New System.Drawing.Size(129, 65)
        Me.Frame3.TabIndex = 13
        Me.Frame3.TabStop = False
        Me.Frame3.Text = "Method Parameters"
        '
        'Frame2
        '
        Me.Frame2.BackColor = System.Drawing.SystemColors.Control
        Me.Frame2.Controls.Add(Me.Check5)
        Me.Frame2.Controls.Add(Me.Check4)
        Me.Frame2.Controls.Add(Me.Combo1)
        Me.Frame2.Controls.Add(Me.Check1)
        Me.Frame2.Controls.Add(Me.Label1)
        Me.Frame2.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame2.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame2.Location = New System.Drawing.Point(456, 176)
        Me.Frame2.Name = "Frame2"
        Me.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame2.Size = New System.Drawing.Size(137, 129)
        Me.Frame2.TabIndex = 7
        Me.Frame2.TabStop = False
        Me.Frame2.Text = "Some Text Properties"
        '
        '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(72, 40)
        Me.Check5.Name = "Check5"
        Me.Check5.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check5.Size = New System.Drawing.Size(49, 17)
        Me.Check5.TabIndex = 12
        Me.Check5.Text = "Italic"
        '
        '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(8, 40)
        Me.Check4.Name = "Check4"
        Me.Check4.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check4.Size = New System.Drawing.Size(49, 17)
        Me.Check4.TabIndex = 11
        Me.Check4.Text = "Bold"
        '
        'Combo1
        '
        Me.Combo1.BackColor = System.Drawing.SystemColors.Window
        Me.Combo1.Cursor = System.Windows.Forms.Cursors.Default
        Me.Combo1.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Combo1.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Combo1.Items.AddRange(New Object() {"12", "24", "36", "48", "72"})
        Me.Combo1.Location = New System.Drawing.Point(72, 96)
        Me.Combo1.Name = "Combo1"
        Me.Combo1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Combo1.Size = New System.Drawing.Size(57, 22)
        Me.Combo1.TabIndex = 10
        Me.Combo1.Text = "24"
        '
        '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(8, 16)
        Me.Check1.Name = "Check1"
        Me.Check1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Check1.Size = New System.Drawing.Size(121, 25)
        Me.Check1.TabIndex = 8
        Me.Check1.Text = "Transparent Back"
        '
        'Label1
        '
        Me.Label1.BackColor = System.Drawing.SystemColors.Control
        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, 96)
        Me.Label1.Name = "Label1"
        Me.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Label1.Size = New System.Drawing.Size(56, 17)
        Me.Label1.TabIndex = 9
        Me.Label1.Text = "Font Size"
        '
        'Frame1
        '
        Me.Frame1.BackColor = System.Drawing.SystemColors.Control
        Me.Frame1.Controls.Add(Me.Text2)
        Me.Frame1.Font = New System.Drawing.Font("Arial", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Frame1.ForeColor = System.Drawing.SystemColors.ControlText
        Me.Frame1.Location = New System.Drawing.Point(456, 120)
        Me.Frame1.Name = "Frame1"
        Me.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Frame1.Size = New System.Drawing.Size(137, 49)
        Me.Frame1.TabIndex = 5
        Me.Frame1.TabStop = False
        Me.Frame1.Text = "Enter Text"
        '
        'Text2
        '
        Me.Text2.AcceptsReturn = True
        Me.Text2.AutoSize = False
        Me.Text2.BackColor = System.Drawing.SystemColors.Window
        Me.Text2.Cursor = System.Windows.Forms.Cursors.IBeam
        Me.Text2.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
        Me.Text2.ForeColor = System.Drawing.SystemColors.WindowText
        Me.Text2.Location = New System.Drawing.Point(8, 16)
        Me.Text2.MaxLength = 0
        Me.Text2.Name = "Text2"
        Me.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text2.Size = New System.Drawing.Size(105, 25)
        Me.Text2.TabIndex = 6
        Me.Text2.Text = "ImageKit"
        '
        '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(585, 49)
        Me.Text1.TabIndex = 4
        Me.Text1.Text = "This sample uses the DrawText method. The DrawText method draws text within a spe" & _
        "cified rectangle. Select an area on the image with your mouse and click the ""Dra" & _
        "w Text"" button. In this sample, only a few PrintDraw properties are used. For a " & _
        "full description of the method and applicable properties, please refer to the He" & _
        "lp documentation."
        '
        '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(464, 432)
        Me.Command3.Name = "Command3"
        Me.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command3.Size = New System.Drawing.Size(129, 41)
        Me.Command3.TabIndex = 3
        Me.Command3.Text = "End"
        '
        'ImageKit1
        '
        Me.ImageKit1.Location = New System.Drawing.Point(8, 56)
        Me.ImageKit1.Name = "ImageKit1"
        Me.ImageKit1.OcxState = CType(resources.GetObject("ImageKit1.OcxState"), System.Windows.Forms.AxHost.State)
        Me.ImageKit1.Size = New System.Drawing.Size(441, 409)
        Me.ImageKit1.TabIndex = 2
        '
        '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(464, 384)
        Me.Command2.Name = "Command2"
        Me.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Command2.Size = New System.Drawing.Size(129, 41)
        Me.Command2.TabIndex = 1
        Me.Command2.Text = "Draw Text"
        '
        '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(137, 41)
        Me.Command1.TabIndex = 0
        Me.Command1.Text = "Load Image"
        '
        'Form1
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.BackColor = System.Drawing.SystemColors.Control
        Me.ClientSize = New System.Drawing.Size(601, 480)
        Me.Controls.Add(Me.Check7)
        Me.Controls.Add(Me.Check6)
        Me.Controls.Add(Me.Check3)
        Me.Controls.Add(Me.Check2)
        Me.Controls.Add(Me.Frame3)
        Me.Controls.Add(Me.Frame2)
        Me.Controls.Add(Me.Frame1)
        Me.Controls.Add(Me.Text1)
        Me.Controls.Add(Me.Command3)
        Me.Controls.Add(Me.ImageKit1)
        Me.Controls.Add(Me.Command2)
        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(4, 23)
        Me.Name = "Form1"
        Me.RightToLeft = System.Windows.Forms.RightToLeft.No
        Me.Text = "DrawText Method"
        Me.Frame2.ResumeLayout(False)
        Me.Frame1.ResumeLayout(False)
        CType(Me.ImageKit1, 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 
	'Loads and displays an image in the ImageKit Control
	Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
		'displays the 'Open File' dialog and allows you to select an image to load...
		If ImageKit1.File.OpenFileDialog = False Then
			Exit Sub
		End If
		
		'loads the image...
		ImageKit1.File.LoadFile(IMAGEKIT7Lib.LoadFileConstants.ikLoad)
		
		'check to see that the loaded image is a raster image...
		If ImageKit1.ImageKind <> IMAGEKIT7Lib.ImageKindConstants.ikRasterImage Then
			ImageKit1.FreeMemory(ImageKit1.ImageHandle)
			MsgBox("Please load a raster image")
			Exit Sub
		End If
		
		'displays the image in scale display mode...
		ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale)
		
	End Sub
	'Uses the DrawText method to draw text on the image
	Private Sub Command2_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command2.Click
		Dim ret As Short
		Dim RectLeft As Short
		Dim RectTop As Short
		Dim RectRight As Short
		Dim RectBottom As Short
		Dim FontScale As Boolean
		Dim Clip As Boolean
		
		'make sure an area is selected on the image...
		If ImageKit1.RectRight = 0 Then
			MsgBox("Please use your mouse to set the text area")
			Exit Sub
		End If
		
		'retreive the coordinates of the area selected with the mouse...
		RectLeft = ImageKit1.RectLeft
		RectTop = ImageKit1.RectTop
		RectRight = ImageKit1.RectRight
		RectBottom = ImageKit1.RectBottom
		
		'reset the PrintDraw interface's property values...
		ImageKit1.PrintDraw.ClearProperty()
		
		'set some properies necessary for the DrawText method...
		ImageKit1.PrintDraw.Text = Text2.Text
		ImageKit1.PrintDraw.FontName = "Arial"
		ImageKit1.PrintDraw.FontSize = Val(Combo1.Text)
		
		'transparent background
		If Check1.CheckState = 1 Then
			ImageKit1.PrintDraw.Transparent = True
		Else
			ImageKit1.PrintDraw.Transparent = False
		End If
		
		'scale the text to fit inside the selected area...
		If Check2.CheckState = 1 Then
			FontScale = True
		Else
			FontScale = False
		End If
		
		'clip the text if it doesn't fit...
		If Check3.CheckState = 1 Then
			Clip = True
		Else
			Clip = False
		End If
		
		'bold...
		If Check4.CheckState = 1 Then
			ImageKit1.PrintDraw.FontBold = True
		Else
			ImageKit1.PrintDraw.FontBold = False
		End If
		
		'Italic...
		If Check5.CheckState = 1 Then
			ImageKit1.PrintDraw.FontItalic = True
		Else
			ImageKit1.PrintDraw.FontItalic = False
		End If
		
		'Underline
		If Check6.CheckState = 1 Then
			ImageKit1.PrintDraw.FontUnderline = True
		Else
			ImageKit1.PrintDraw.FontUnderline = False
		End If
		
		'strike through
		If Check7.CheckState = 1 Then
			ImageKit1.PrintDraw.FontStrikeOut = True
		Else
			ImageKit1.PrintDraw.FontStrikeOut = False
		End If
		
		'set the text color and background color
		ImageKit1.PrintDraw.TextColor1 = RGB(255, 0, 0)
		ImageKit1.PrintDraw.TextColor2 = RGB(255, 255, 0)
		
		'execute the DrawText method, drawing directly to the image handle.
		'See the help file for a full discussion of the DrawText parameters...
		ret = ImageKit1.PrintDraw.DrawText(ImageKit1.ImageHandle, RectLeft, RectTop, RectRight, RectBottom, FontScale, Clip, IMAGEKIT7Lib.OutPutDeviceModeConstants.ikMemoryHandle)
		
		
		'reset selected area
		RectLeft = 0
		RectTop = 0
		RectRight = 0
		RectBottom = 0
		
		'redisplay the image so the the text will appear on the screen...
		ImageKit1.CtlRefresh()
		
	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 Form1_Load(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles MyBase.Load
		'all an area to be selected with the mouse
		ImageKit1.RectDraw = True
	End Sub
End Class