using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Project1
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		public System.Windows.Forms.GroupBox Frame3;
		public System.Windows.Forms.TextBox Text5;
		public System.Windows.Forms.TextBox Text4;
		public System.Windows.Forms.TextBox Text3;
		public System.Windows.Forms.Label Label5;
		public System.Windows.Forms.Label Label4;
		public System.Windows.Forms.Label Label3;
		public System.Windows.Forms.Label Label2;
		public System.Windows.Forms.GroupBox Frame2;
		public System.Windows.Forms.TextBox Text11;
		public System.Windows.Forms.TextBox Text10;
		public System.Windows.Forms.TextBox Text9;
		public System.Windows.Forms.TextBox Text8;
		public System.Windows.Forms.TextBox Text7;
		public System.Windows.Forms.TextBox Text6;
		public System.Windows.Forms.ComboBox Combo1;
		public System.Windows.Forms.CheckBox Check1;
		public System.Windows.Forms.Label Label13;
		public System.Windows.Forms.Label Label12;
		public System.Windows.Forms.Label Label11;
		public System.Windows.Forms.Label Label10;
		public System.Windows.Forms.Label Label9;
		public System.Windows.Forms.Label Label8;
		public System.Windows.Forms.Label Label7;
		public System.Windows.Forms.Label Label6;
		public System.Windows.Forms.Label Label1;
		public System.Windows.Forms.GroupBox Frame1;
		public System.Windows.Forms.TextBox Text2;
		public System.Windows.Forms.Button Command3;
		public System.Windows.Forms.Button Command2;
		public System.Windows.Forms.Button Command1;
		public System.Windows.Forms.TextBox Text1;
		private AxIMAGEKIT7Lib.AxImageKit ImageKit1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		private int MouseDownX;
		private int MouseDownY;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.Frame3 = new System.Windows.Forms.GroupBox();
			this.Text5 = new System.Windows.Forms.TextBox();
			this.Text4 = new System.Windows.Forms.TextBox();
			this.Text3 = new System.Windows.Forms.TextBox();
			this.Label5 = new System.Windows.Forms.Label();
			this.Label4 = new System.Windows.Forms.Label();
			this.Label3 = new System.Windows.Forms.Label();
			this.Label2 = new System.Windows.Forms.Label();
			this.Frame2 = new System.Windows.Forms.GroupBox();
			this.Text11 = new System.Windows.Forms.TextBox();
			this.Text10 = new System.Windows.Forms.TextBox();
			this.Text9 = new System.Windows.Forms.TextBox();
			this.Text8 = new System.Windows.Forms.TextBox();
			this.Text7 = new System.Windows.Forms.TextBox();
			this.Text6 = new System.Windows.Forms.TextBox();
			this.Combo1 = new System.Windows.Forms.ComboBox();
			this.Check1 = new System.Windows.Forms.CheckBox();
			this.Label13 = new System.Windows.Forms.Label();
			this.Label12 = new System.Windows.Forms.Label();
			this.Label11 = new System.Windows.Forms.Label();
			this.Label10 = new System.Windows.Forms.Label();
			this.Label9 = new System.Windows.Forms.Label();
			this.Label8 = new System.Windows.Forms.Label();
			this.Label7 = new System.Windows.Forms.Label();
			this.Label6 = new System.Windows.Forms.Label();
			this.Label1 = new System.Windows.Forms.Label();
			this.Frame1 = new System.Windows.Forms.GroupBox();
			this.Text2 = new System.Windows.Forms.TextBox();
			this.Command3 = new System.Windows.Forms.Button();
			this.Command2 = new System.Windows.Forms.Button();
			this.Command1 = new System.Windows.Forms.Button();
			this.Text1 = new System.Windows.Forms.TextBox();
			this.ImageKit1 = new AxIMAGEKIT7Lib.AxImageKit();
			this.Frame3.SuspendLayout();
			this.Frame2.SuspendLayout();
			this.Frame1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.ImageKit1)).BeginInit();
			this.SuspendLayout();
			// 
			// Frame3
			// 
			this.Frame3.BackColor = System.Drawing.SystemColors.Control;
			this.Frame3.Controls.Add(this.Text5);
			this.Frame3.Controls.Add(this.Text4);
			this.Frame3.Controls.Add(this.Text3);
			this.Frame3.Controls.Add(this.Label5);
			this.Frame3.Controls.Add(this.Label4);
			this.Frame3.Controls.Add(this.Label3);
			this.Frame3.Controls.Add(this.Label2);
			this.Frame3.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame3.Location = new System.Drawing.Point(456, 168);
			this.Frame3.Name = "Frame3";
			this.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame3.Size = new System.Drawing.Size(169, 73);
			this.Frame3.TabIndex = 17;
			this.Frame3.TabStop = false;
			this.Frame3.Text = "Text Position";
			// 
			// Text5
			// 
			this.Text5.AcceptsReturn = true;
			this.Text5.AutoSize = false;
			this.Text5.BackColor = System.Drawing.SystemColors.Window;
			this.Text5.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text5.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text5.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text5.Location = new System.Drawing.Point(128, 40);
			this.Text5.MaxLength = 0;
			this.Text5.Name = "Text5";
			this.Text5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text5.Size = new System.Drawing.Size(25, 19);
			this.Text5.TabIndex = 30;
			this.Text5.Text = "0";
			// 
			// Text4
			// 
			this.Text4.AcceptsReturn = true;
			this.Text4.AutoSize = false;
			this.Text4.BackColor = System.Drawing.SystemColors.Window;
			this.Text4.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text4.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text4.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text4.Location = new System.Drawing.Point(24, 40);
			this.Text4.MaxLength = 0;
			this.Text4.Name = "Text4";
			this.Text4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text4.Size = new System.Drawing.Size(41, 19);
			this.Text4.TabIndex = 15;
			this.Text4.Text = "0";
			this.Text4.TextChanged += new System.EventHandler(this.Text4_TextChanged);
			// 
			// Text3
			// 
			this.Text3.AcceptsReturn = true;
			this.Text3.AutoSize = false;
			this.Text3.BackColor = System.Drawing.SystemColors.Window;
			this.Text3.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text3.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text3.Location = new System.Drawing.Point(24, 16);
			this.Text3.MaxLength = 0;
			this.Text3.Name = "Text3";
			this.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text3.Size = new System.Drawing.Size(41, 19);
			this.Text3.TabIndex = 13;
			this.Text3.Text = "0";
			this.Text3.TextChanged += new System.EventHandler(this.Text3_TextChanged);
			// 
			// Label5
			// 
			this.Label5.BackColor = System.Drawing.SystemColors.Control;
			this.Label5.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label5.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label5.Location = new System.Drawing.Point(96, 40);
			this.Label5.Name = "Label5";
			this.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label5.Size = new System.Drawing.Size(33, 17);
			this.Label5.TabIndex = 32;
			this.Label5.Text = "Angle";
			// 
			// Label4
			// 
			this.Label4.BackColor = System.Drawing.SystemColors.Control;
			this.Label4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label4.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label4.Location = new System.Drawing.Point(88, 16);
			this.Label4.Name = "Label4";
			this.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label4.Size = new System.Drawing.Size(72, 17);
			this.Label4.TabIndex = 31;
			this.Label4.Text = "Rotate String";
			// 
			// Label3
			// 
			this.Label3.BackColor = System.Drawing.SystemColors.Control;
			this.Label3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label3.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label3.Location = new System.Drawing.Point(8, 40);
			this.Label3.Name = "Label3";
			this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label3.Size = new System.Drawing.Size(17, 17);
			this.Label3.TabIndex = 14;
			this.Label3.Text = "y";
			// 
			// Label2
			// 
			this.Label2.BackColor = System.Drawing.SystemColors.Control;
			this.Label2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label2.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label2.Location = new System.Drawing.Point(8, 16);
			this.Label2.Name = "Label2";
			this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label2.Size = new System.Drawing.Size(17, 25);
			this.Label2.TabIndex = 12;
			this.Label2.Text = "x";
			// 
			// Frame2
			// 
			this.Frame2.BackColor = System.Drawing.SystemColors.Control;
			this.Frame2.Controls.Add(this.Text11);
			this.Frame2.Controls.Add(this.Text10);
			this.Frame2.Controls.Add(this.Text9);
			this.Frame2.Controls.Add(this.Text8);
			this.Frame2.Controls.Add(this.Text7);
			this.Frame2.Controls.Add(this.Text6);
			this.Frame2.Controls.Add(this.Combo1);
			this.Frame2.Controls.Add(this.Check1);
			this.Frame2.Controls.Add(this.Label13);
			this.Frame2.Controls.Add(this.Label12);
			this.Frame2.Controls.Add(this.Label11);
			this.Frame2.Controls.Add(this.Label10);
			this.Frame2.Controls.Add(this.Label9);
			this.Frame2.Controls.Add(this.Label8);
			this.Frame2.Controls.Add(this.Label7);
			this.Frame2.Controls.Add(this.Label6);
			this.Frame2.Controls.Add(this.Label1);
			this.Frame2.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame2.Location = new System.Drawing.Point(456, 256);
			this.Frame2.Name = "Frame2";
			this.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame2.Size = new System.Drawing.Size(169, 185);
			this.Frame2.TabIndex = 16;
			this.Frame2.TabStop = false;
			this.Frame2.Text = "Some Text Properties";
			// 
			// Text11
			// 
			this.Text11.AcceptsReturn = true;
			this.Text11.AutoSize = false;
			this.Text11.BackColor = System.Drawing.SystemColors.Window;
			this.Text11.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text11.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text11.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text11.Location = new System.Drawing.Point(128, 88);
			this.Text11.MaxLength = 0;
			this.Text11.Name = "Text11";
			this.Text11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text11.Size = new System.Drawing.Size(25, 19);
			this.Text11.TabIndex = 28;
			this.Text11.Text = "0";
			// 
			// Text10
			// 
			this.Text10.AcceptsReturn = true;
			this.Text10.AutoSize = false;
			this.Text10.BackColor = System.Drawing.SystemColors.Window;
			this.Text10.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text10.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text10.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text10.Location = new System.Drawing.Point(128, 64);
			this.Text10.MaxLength = 0;
			this.Text10.Name = "Text10";
			this.Text10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text10.Size = new System.Drawing.Size(25, 19);
			this.Text10.TabIndex = 26;
			this.Text10.Text = "255";
			// 
			// Text9
			// 
			this.Text9.AcceptsReturn = true;
			this.Text9.AutoSize = false;
			this.Text9.BackColor = System.Drawing.SystemColors.Window;
			this.Text9.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text9.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text9.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text9.Location = new System.Drawing.Point(128, 40);
			this.Text9.MaxLength = 0;
			this.Text9.Name = "Text9";
			this.Text9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text9.Size = new System.Drawing.Size(25, 19);
			this.Text9.TabIndex = 24;
			this.Text9.Text = "255";
			// 
			// Text8
			// 
			this.Text8.AcceptsReturn = true;
			this.Text8.AutoSize = false;
			this.Text8.BackColor = System.Drawing.SystemColors.Window;
			this.Text8.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text8.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text8.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text8.Location = new System.Drawing.Point(48, 88);
			this.Text8.MaxLength = 0;
			this.Text8.Name = "Text8";
			this.Text8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text8.Size = new System.Drawing.Size(25, 19);
			this.Text8.TabIndex = 21;
			this.Text8.Text = "0";
			// 
			// Text7
			// 
			this.Text7.AcceptsReturn = true;
			this.Text7.AutoSize = false;
			this.Text7.BackColor = System.Drawing.SystemColors.Window;
			this.Text7.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text7.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text7.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text7.Location = new System.Drawing.Point(48, 64);
			this.Text7.MaxLength = 0;
			this.Text7.Name = "Text7";
			this.Text7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text7.Size = new System.Drawing.Size(25, 19);
			this.Text7.TabIndex = 19;
			this.Text7.Text = "0";
			// 
			// Text6
			// 
			this.Text6.AcceptsReturn = true;
			this.Text6.AutoSize = false;
			this.Text6.BackColor = System.Drawing.SystemColors.Window;
			this.Text6.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text6.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text6.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text6.Location = new System.Drawing.Point(48, 40);
			this.Text6.MaxLength = 0;
			this.Text6.Name = "Text6";
			this.Text6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text6.Size = new System.Drawing.Size(25, 19);
			this.Text6.TabIndex = 18;
			this.Text6.Text = "255";
			// 
			// Combo1
			// 
			this.Combo1.BackColor = System.Drawing.SystemColors.Window;
			this.Combo1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Combo1.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo1.Items.AddRange(new object[] {
														"12",
														"24",
														"36",
														"48",
														"72"});
			this.Combo1.Location = new System.Drawing.Point(80, 152);
			this.Combo1.Name = "Combo1";
			this.Combo1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo1.Size = new System.Drawing.Size(57, 22);
			this.Combo1.TabIndex = 10;
			this.Combo1.Text = "24";
			// 
			// Check1
			// 
			this.Check1.BackColor = System.Drawing.SystemColors.Control;
			this.Check1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Check1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Check1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Check1.Location = new System.Drawing.Point(32, 120);
			this.Check1.Name = "Check1";
			this.Check1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Check1.Size = new System.Drawing.Size(113, 25);
			this.Check1.TabIndex = 8;
			this.Check1.Text = "Transparent Back";
			// 
			// Label13
			// 
			this.Label13.BackColor = System.Drawing.SystemColors.Control;
			this.Label13.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label13.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label13.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label13.Location = new System.Drawing.Point(96, 88);
			this.Label13.Name = "Label13";
			this.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label13.Size = new System.Drawing.Size(32, 17);
			this.Label13.TabIndex = 29;
			this.Label13.Text = "Blue";
			// 
			// Label12
			// 
			this.Label12.BackColor = System.Drawing.SystemColors.Control;
			this.Label12.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label12.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label12.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label12.Location = new System.Drawing.Point(88, 64);
			this.Label12.Name = "Label12";
			this.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label12.Size = new System.Drawing.Size(40, 17);
			this.Label12.TabIndex = 27;
			this.Label12.Text = "Green";
			// 
			// Label11
			// 
			this.Label11.BackColor = System.Drawing.SystemColors.Control;
			this.Label11.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label11.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label11.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label11.Location = new System.Drawing.Point(96, 40);
			this.Label11.Name = "Label11";
			this.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label11.Size = new System.Drawing.Size(25, 17);
			this.Label11.TabIndex = 25;
			this.Label11.Text = "Red";
			// 
			// Label10
			// 
			this.Label10.BackColor = System.Drawing.SystemColors.Control;
			this.Label10.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label10.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label10.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label10.Location = new System.Drawing.Point(96, 16);
			this.Label10.Name = "Label10";
			this.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label10.Size = new System.Drawing.Size(64, 17);
			this.Label10.TabIndex = 23;
			this.Label10.Text = "Back Color";
			// 
			// Label9
			// 
			this.Label9.BackColor = System.Drawing.SystemColors.Control;
			this.Label9.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label9.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label9.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label9.Location = new System.Drawing.Point(16, 88);
			this.Label9.Name = "Label9";
			this.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label9.Size = new System.Drawing.Size(32, 17);
			this.Label9.TabIndex = 22;
			this.Label9.Text = "Blue";
			// 
			// Label8
			// 
			this.Label8.BackColor = System.Drawing.SystemColors.Control;
			this.Label8.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label8.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label8.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label8.Location = new System.Drawing.Point(8, 64);
			this.Label8.Name = "Label8";
			this.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label8.Size = new System.Drawing.Size(40, 17);
			this.Label8.TabIndex = 20;
			this.Label8.Text = "Green";
			// 
			// Label7
			// 
			this.Label7.BackColor = System.Drawing.SystemColors.Control;
			this.Label7.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label7.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label7.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label7.Location = new System.Drawing.Point(16, 40);
			this.Label7.Name = "Label7";
			this.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label7.Size = new System.Drawing.Size(25, 17);
			this.Label7.TabIndex = 17;
			this.Label7.Text = "Red";
			// 
			// Label6
			// 
			this.Label6.BackColor = System.Drawing.SystemColors.Control;
			this.Label6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label6.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label6.Location = new System.Drawing.Point(16, 16);
			this.Label6.Name = "Label6";
			this.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label6.Size = new System.Drawing.Size(64, 17);
			this.Label6.TabIndex = 16;
			this.Label6.Text = "Fore Color";
			// 
			// Label1
			// 
			this.Label1.BackColor = System.Drawing.SystemColors.Control;
			this.Label1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label1.Location = new System.Drawing.Point(16, 152);
			this.Label1.Name = "Label1";
			this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label1.Size = new System.Drawing.Size(56, 17);
			this.Label1.TabIndex = 9;
			this.Label1.Text = "Font Size";
			// 
			// Frame1
			// 
			this.Frame1.BackColor = System.Drawing.SystemColors.Control;
			this.Frame1.Controls.Add(this.Text2);
			this.Frame1.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame1.Location = new System.Drawing.Point(456, 112);
			this.Frame1.Name = "Frame1";
			this.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame1.Size = new System.Drawing.Size(169, 49);
			this.Frame1.TabIndex = 15;
			this.Frame1.TabStop = false;
			this.Frame1.Text = "Enter Text";
			// 
			// Text2
			// 
			this.Text2.AcceptsReturn = true;
			this.Text2.AutoSize = false;
			this.Text2.BackColor = System.Drawing.SystemColors.Window;
			this.Text2.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text2.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Text2.Location = new System.Drawing.Point(8, 16);
			this.Text2.MaxLength = 0;
			this.Text2.Name = "Text2";
			this.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text2.Size = new System.Drawing.Size(145, 25);
			this.Text2.TabIndex = 6;
			this.Text2.Text = "ImageKit";
			// 
			// Command3
			// 
			this.Command3.BackColor = System.Drawing.SystemColors.Control;
			this.Command3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Command3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command3.Location = new System.Drawing.Point(456, 488);
			this.Command3.Name = "Command3";
			this.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command3.Size = new System.Drawing.Size(169, 33);
			this.Command3.TabIndex = 14;
			this.Command3.Text = "End";
			this.Command3.Click += new System.EventHandler(this.Command3_Click);
			// 
			// Command2
			// 
			this.Command2.BackColor = System.Drawing.SystemColors.Control;
			this.Command2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Command2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command2.Location = new System.Drawing.Point(456, 448);
			this.Command2.Name = "Command2";
			this.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command2.Size = new System.Drawing.Size(169, 33);
			this.Command2.TabIndex = 13;
			this.Command2.Text = "Text Out";
			this.Command2.Click += new System.EventHandler(this.Command2_Click);
			// 
			// Command1
			// 
			this.Command1.BackColor = System.Drawing.SystemColors.Control;
			this.Command1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Command1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command1.Location = new System.Drawing.Point(456, 72);
			this.Command1.Name = "Command1";
			this.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command1.Size = new System.Drawing.Size(169, 33);
			this.Command1.TabIndex = 12;
			this.Command1.Text = "Load Image";
			this.Command1.Click += new System.EventHandler(this.Command1_Click);
			// 
			// Text1
			// 
			this.Text1.AcceptsReturn = true;
			this.Text1.AutoSize = false;
			this.Text1.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(192)));
			this.Text1.Cursor = System.Windows.Forms.Cursors.IBeam;
			this.Text1.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Text1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(0)), ((System.Byte)(0)));
			this.Text1.Location = new System.Drawing.Point(8, 0);
			this.Text1.MaxLength = 0;
			this.Text1.Multiline = true;
			this.Text1.Name = "Text1";
			this.Text1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text1.Size = new System.Drawing.Size(617, 65);
			this.Text1.TabIndex = 18;
			this.Text1.Text = @"This sample uses the TextOut method to draw text. Click the image to set the point from which the text will be drawn. The TextOut method has fewer parameters than the DrawText method but uses many of the same properties. In this sample, text color and background color can be set and the entire text string can be rotated. For details about the TextOut method and related properties, please refer to the Help documentation";
			// 
			// ImageKit1
			// 
			this.ImageKit1.Location = new System.Drawing.Point(8, 72);
			this.ImageKit1.Name = "ImageKit1";
			this.ImageKit1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("ImageKit1.OcxState")));
			this.ImageKit1.Size = new System.Drawing.Size(441, 441);
			this.ImageKit1.TabIndex = 19;
			this.ImageKit1.MouseDownImage += new AxIMAGEKIT7Lib._IImageKitEvents_MouseDownImageEventHandler(this.ImageKit1_MouseDownImage);
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(632, 526);
			this.Controls.Add(this.ImageKit1);
			this.Controls.Add(this.Text1);
			this.Controls.Add(this.Frame3);
			this.Controls.Add(this.Frame2);
			this.Controls.Add(this.Frame1);
			this.Controls.Add(this.Command3);
			this.Controls.Add(this.Command2);
			this.Controls.Add(this.Command1);
			this.Name = "Form1";
			this.Text = "TextOut Method";
			this.Frame3.ResumeLayout(false);
			this.Frame2.ResumeLayout(false);
			this.Frame1.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.ImageKit1)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Command1_Click(object sender, System.EventArgs e)
		{
			//displays the 'Open File' dialog and allows you to select an image to load...
			if (ImageKit1.File.OpenFileDialog() == false) 
			{
				return;
			}
		
			//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)
			{

				ImageKit1.FreeMemory(ImageKit1.ImageHandle);
				MessageBox.Show("Please load a raster image");
				return;
			}
		
			//displays the image in scale display mode...
			ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale);
		}

		private void Command2_Click(object sender, System.EventArgs e)
		{
			bool ret;
		
			//reset the PrintDraw interface's property values...
			ImageKit1.PrintDraw.ClearProperty();
			
			//set some properies necessary for the TextOut method...
			ImageKit1.PrintDraw.Text = Text2.Text;
			ImageKit1.PrintDraw.FontName = "Arial";
			ImageKit1.PrintDraw.FontSize = Convert.ToInt16(Combo1.Text);
			
			if (Check1.Checked == true) 
			{
				ImageKit1.PrintDraw.Transparent = true;
			}
			else 
			{
				ImageKit1.PrintDraw.Transparent = false;
			}
			
			ImageKit1.PrintDraw.RotateString = true;
			
			ImageKit1.PrintDraw.CharAngle = Convert.ToInt16(Text5.Text);			
			
			ImageKit1.PrintDraw.TextColor1 = System.Drawing.ColorTranslator.ToWin32(System.Drawing.Color.FromArgb(Convert.ToInt16(Text6.Text), Convert.ToInt16(Text7.Text), Convert.ToInt16(Text8.Text)));
			ImageKit1.PrintDraw.TextColor2 = System.Drawing.ColorTranslator.ToWin32(System.Drawing.Color.FromArgb(Convert.ToInt16(Text9.Text), Convert.ToInt16(Text10.Text), Convert.ToInt16(Text11.Text)));
			
			//execute the TextOut method, drawing directly to the image handle.
			ret = ImageKit1.PrintDraw.TextOut(ImageKit1.ImageHandle, MouseDownX, MouseDownY, IMAGEKIT7Lib.OutPutDeviceModeConstants.ikMemoryHandle);
			
			
			//redisplay the image so the the text will appear on the screen...
			ImageKit1.CtlRefresh();
		}

		private void Command3_Click(object sender, System.EventArgs e)
		{
			this.Close();
		}

		private void Text3_TextChanged(object sender, System.EventArgs e)
		{
			//set the x coordinate from the textbox value...
			MouseDownX = Convert.ToInt32(Text3.Text);
		}

		private void Text4_TextChanged(object sender, System.EventArgs e)
		{
			//set the y coordinate from the textbox value...
			MouseDownY = Convert.ToInt32(Text4.Text);
		}


		private void ImageKit1_MouseDownImage(object sender, AxIMAGEKIT7Lib._IImageKitEvents_MouseDownImageEvent e)
		{
			//set the mouse click position
			MouseDownX = e.x;
			MouseDownY = e.y;

			//display the coordinates of the mouse down position
			Text3.Text = (e.x).ToString();
			Text4.Text = (e.y).ToString();
		}
	}
}
