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 Frame7;
		public System.Windows.Forms.ComboBox Combo4;
		public System.Windows.Forms.GroupBox Frame6;
		public System.Windows.Forms.ComboBox Combo3;
		public System.Windows.Forms.GroupBox Frame5;
		public System.Windows.Forms.TextBox Text11;
		public System.Windows.Forms.Label Label14;
		public System.Windows.Forms.GroupBox Frame4;
		public System.Windows.Forms.ComboBox Combo2;
		public System.Windows.Forms.Label Label13;
		public System.Windows.Forms.GroupBox Frame3;
		public System.Windows.Forms.TextBox Text10;
		public System.Windows.Forms.TextBox Text9;
		public System.Windows.Forms.Label Label12;
		public System.Windows.Forms.Label Label11;
		public System.Windows.Forms.GroupBox Frame2;
		public System.Windows.Forms.TextBox Text8;
		public System.Windows.Forms.TextBox Text7;
		public System.Windows.Forms.TextBox Text6;
		public System.Windows.Forms.TextBox Text5;
		public System.Windows.Forms.TextBox Text4;
		public System.Windows.Forms.TextBox Text3;
		public System.Windows.Forms.ComboBox Combo1;
		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 Label5;
		public System.Windows.Forms.Label Label4;
		public System.Windows.Forms.Label Label3;
		public System.Windows.Forms.Label Label2;
		public System.Windows.Forms.GroupBox Frame1;
		public System.Windows.Forms.TextBox Text2;
		public System.Windows.Forms.Label Label1;
		public System.Windows.Forms.Button Command3;
		public System.Windows.Forms.Button Command2;
		public System.Windows.Forms.Button Command1;
		public System.Windows.Forms.TextBox Text1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;
		private AxIMAGEKIT7Lib.AxImageKit ImageKit1;
		private int OriginalImageHandle;
		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.Frame7 = new System.Windows.Forms.GroupBox();
			this.Combo4 = new System.Windows.Forms.ComboBox();
			this.Frame6 = new System.Windows.Forms.GroupBox();
			this.Combo3 = new System.Windows.Forms.ComboBox();
			this.Frame5 = new System.Windows.Forms.GroupBox();
			this.Text11 = new System.Windows.Forms.TextBox();
			this.Label14 = new System.Windows.Forms.Label();
			this.Frame4 = new System.Windows.Forms.GroupBox();
			this.Combo2 = new System.Windows.Forms.ComboBox();
			this.Label13 = new System.Windows.Forms.Label();
			this.Frame3 = new System.Windows.Forms.GroupBox();
			this.Text10 = new System.Windows.Forms.TextBox();
			this.Text9 = new System.Windows.Forms.TextBox();
			this.Label12 = new System.Windows.Forms.Label();
			this.Label11 = new System.Windows.Forms.Label();
			this.Frame2 = new System.Windows.Forms.GroupBox();
			this.Text8 = new System.Windows.Forms.TextBox();
			this.Text7 = new System.Windows.Forms.TextBox();
			this.Text6 = new System.Windows.Forms.TextBox();
			this.Text5 = new System.Windows.Forms.TextBox();
			this.Text4 = new System.Windows.Forms.TextBox();
			this.Text3 = new System.Windows.Forms.TextBox();
			this.Combo1 = new System.Windows.Forms.ComboBox();
			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.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.Frame1 = new System.Windows.Forms.GroupBox();
			this.Text2 = new System.Windows.Forms.TextBox();
			this.Label1 = new System.Windows.Forms.Label();
			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.Frame7.SuspendLayout();
			this.Frame6.SuspendLayout();
			this.Frame5.SuspendLayout();
			this.Frame4.SuspendLayout();
			this.Frame3.SuspendLayout();
			this.Frame2.SuspendLayout();
			this.Frame1.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.ImageKit1)).BeginInit();
			this.SuspendLayout();
			// 
			// Frame7
			// 
			this.Frame7.BackColor = System.Drawing.SystemColors.Control;
			this.Frame7.Controls.Add(this.Combo4);
			this.Frame7.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame7.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame7.Location = new System.Drawing.Point(468, 184);
			this.Frame7.Name = "Frame7";
			this.Frame7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame7.Size = new System.Drawing.Size(144, 49);
			this.Frame7.TabIndex = 49;
			this.Frame7.TabStop = false;
			this.Frame7.Text = "Flip";
			// 
			// Combo4
			// 
			this.Combo4.BackColor = System.Drawing.SystemColors.Window;
			this.Combo4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo4.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Combo4.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo4.Items.AddRange(new object[] {
														"False",
														"True"});
			this.Combo4.Location = new System.Drawing.Point(32, 16);
			this.Combo4.Name = "Combo4";
			this.Combo4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo4.Size = new System.Drawing.Size(73, 22);
			this.Combo4.TabIndex = 39;
			this.Combo4.Text = "False";
			// 
			// Frame6
			// 
			this.Frame6.BackColor = System.Drawing.SystemColors.Control;
			this.Frame6.Controls.Add(this.Combo3);
			this.Frame6.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame6.Location = new System.Drawing.Point(468, 128);
			this.Frame6.Name = "Frame6";
			this.Frame6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame6.Size = new System.Drawing.Size(144, 49);
			this.Frame6.TabIndex = 48;
			this.Frame6.TabStop = false;
			this.Frame6.Text = "Mirror";
			// 
			// Combo3
			// 
			this.Combo3.BackColor = System.Drawing.SystemColors.Window;
			this.Combo3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo3.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Combo3.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo3.Items.AddRange(new object[] {
														"False",
														"True"});
			this.Combo3.Location = new System.Drawing.Point(40, 16);
			this.Combo3.Name = "Combo3";
			this.Combo3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo3.Size = new System.Drawing.Size(65, 22);
			this.Combo3.TabIndex = 37;
			this.Combo3.Text = "False";
			// 
			// Frame5
			// 
			this.Frame5.BackColor = System.Drawing.SystemColors.Control;
			this.Frame5.Controls.Add(this.Text11);
			this.Frame5.Controls.Add(this.Label14);
			this.Frame5.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame5.Location = new System.Drawing.Point(468, 80);
			this.Frame5.Name = "Frame5";
			this.Frame5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame5.Size = new System.Drawing.Size(144, 41);
			this.Frame5.TabIndex = 47;
			this.Frame5.TabStop = false;
			this.Frame5.Text = "Set Rotation Angle";
			// 
			// 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(8, 16);
			this.Text11.MaxLength = 0;
			this.Text11.Name = "Text11";
			this.Text11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text11.Size = new System.Drawing.Size(33, 19);
			this.Text11.TabIndex = 34;
			this.Text11.Text = "0";
			// 
			// Label14
			// 
			this.Label14.BackColor = System.Drawing.SystemColors.Control;
			this.Label14.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label14.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label14.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label14.Location = new System.Drawing.Point(48, 16);
			this.Label14.Name = "Label14";
			this.Label14.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label14.Size = new System.Drawing.Size(80, 17);
			this.Label14.TabIndex = 35;
			this.Label14.Text = "From 0 to 360";
			// 
			// Frame4
			// 
			this.Frame4.BackColor = System.Drawing.SystemColors.Control;
			this.Frame4.Controls.Add(this.Combo2);
			this.Frame4.Controls.Add(this.Label13);
			this.Frame4.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Frame4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Frame4.Location = new System.Drawing.Point(12, 184);
			this.Frame4.Name = "Frame4";
			this.Frame4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame4.Size = new System.Drawing.Size(209, 49);
			this.Frame4.TabIndex = 46;
			this.Frame4.TabStop = false;
			this.Frame4.Text = "Clipping";
			// 
			// Combo2
			// 
			this.Combo2.BackColor = System.Drawing.SystemColors.Window;
			this.Combo2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo2.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Combo2.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo2.Items.AddRange(new object[] {
														"False",
														"True"});
			this.Combo2.Location = new System.Drawing.Point(112, 16);
			this.Combo2.Name = "Combo2";
			this.Combo2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo2.Size = new System.Drawing.Size(57, 22);
			this.Combo2.TabIndex = 32;
			this.Combo2.Text = "False";
			// 
			// 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(32, 16);
			this.Label13.Name = "Label13";
			this.Label13.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label13.Size = new System.Drawing.Size(81, 17);
			this.Label13.TabIndex = 31;
			this.Label13.Text = "Enable Clipping";
			// 
			// Frame3
			// 
			this.Frame3.BackColor = System.Drawing.SystemColors.Control;
			this.Frame3.Controls.Add(this.Text10);
			this.Frame3.Controls.Add(this.Text9);
			this.Frame3.Controls.Add(this.Label12);
			this.Frame3.Controls.Add(this.Label11);
			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(12, 80);
			this.Frame3.Name = "Frame3";
			this.Frame3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame3.Size = new System.Drawing.Size(209, 49);
			this.Frame3.TabIndex = 45;
			this.Frame3.TabStop = false;
			this.Frame3.Text = "Set Attachment Location";
			// 
			// 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(136, 16);
			this.Text10.MaxLength = 0;
			this.Text10.Name = "Text10";
			this.Text10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text10.Size = new System.Drawing.Size(41, 19);
			this.Text10.TabIndex = 29;
			this.Text10.Text = "0";
			// 
			// 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(32, 16);
			this.Text9.MaxLength = 0;
			this.Text9.Name = "Text9";
			this.Text9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text9.Size = new System.Drawing.Size(41, 19);
			this.Text9.TabIndex = 27;
			this.Text9.Text = "0";
			// 
			// Label12
			// 
			this.Label12.BackColor = System.Drawing.SystemColors.Control;
			this.Label12.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label12.Font = new System.Drawing.Font("Arial", 9.75F, 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(112, 16);
			this.Label12.Name = "Label12";
			this.Label12.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label12.Size = new System.Drawing.Size(17, 17);
			this.Label12.TabIndex = 28;
			this.Label12.Text = "y";
			this.Label12.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// Label11
			// 
			this.Label11.BackColor = System.Drawing.SystemColors.Control;
			this.Label11.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label11.Font = new System.Drawing.Font("Arial", 9.75F, 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(8, 16);
			this.Label11.Name = "Label11";
			this.Label11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label11.Size = new System.Drawing.Size(17, 17);
			this.Label11.TabIndex = 26;
			this.Label11.Text = "x";
			this.Label11.TextAlign = System.Drawing.ContentAlignment.TopRight;
			// 
			// Frame2
			// 
			this.Frame2.BackColor = System.Drawing.SystemColors.Control;
			this.Frame2.Controls.Add(this.Text8);
			this.Frame2.Controls.Add(this.Text7);
			this.Frame2.Controls.Add(this.Text6);
			this.Frame2.Controls.Add(this.Text5);
			this.Frame2.Controls.Add(this.Text4);
			this.Frame2.Controls.Add(this.Text3);
			this.Frame2.Controls.Add(this.Combo1);
			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.Label5);
			this.Frame2.Controls.Add(this.Label4);
			this.Frame2.Controls.Add(this.Label3);
			this.Frame2.Controls.Add(this.Label2);
			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(236, 80);
			this.Frame2.Name = "Frame2";
			this.Frame2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame2.Size = new System.Drawing.Size(216, 153);
			this.Frame2.TabIndex = 44;
			this.Frame2.TabStop = false;
			this.Frame2.Text = "Set A Transparent Color";
			// 
			// 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(160, 120);
			this.Text8.MaxLength = 0;
			this.Text8.Name = "Text8";
			this.Text8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text8.Size = new System.Drawing.Size(33, 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(160, 96);
			this.Text7.MaxLength = 0;
			this.Text7.Name = "Text7";
			this.Text7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text7.Size = new System.Drawing.Size(33, 19);
			this.Text7.TabIndex = 20;
			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(160, 72);
			this.Text6.MaxLength = 0;
			this.Text6.Name = "Text6";
			this.Text6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text6.Size = new System.Drawing.Size(33, 19);
			this.Text6.TabIndex = 19;
			this.Text6.Text = "0";
			// 
			// 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(56, 120);
			this.Text5.MaxLength = 0;
			this.Text5.Name = "Text5";
			this.Text5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text5.Size = new System.Drawing.Size(33, 19);
			this.Text5.TabIndex = 17;
			this.Text5.Text = "255";
			// 
			// 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(56, 96);
			this.Text4.MaxLength = 0;
			this.Text4.Name = "Text4";
			this.Text4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text4.Size = new System.Drawing.Size(33, 19);
			this.Text4.TabIndex = 16;
			this.Text4.Text = "255";
			// 
			// 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(56, 72);
			this.Text3.MaxLength = 0;
			this.Text3.Name = "Text3";
			this.Text3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text3.Size = new System.Drawing.Size(33, 19);
			this.Text3.TabIndex = 15;
			this.Text3.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[] {
														"False",
														"True"});
			this.Combo1.Location = new System.Drawing.Point(152, 24);
			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 = "False";
			// 
			// Label10
			// 
			this.Label10.BackColor = System.Drawing.SystemColors.Control;
			this.Label10.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label10.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label10.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label10.Location = new System.Drawing.Point(128, 120);
			this.Label10.Name = "Label10";
			this.Label10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label10.Size = new System.Drawing.Size(32, 17);
			this.Label10.TabIndex = 24;
			this.Label10.Text = "Blue";
			// 
			// 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(120, 96);
			this.Label9.Name = "Label9";
			this.Label9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label9.Size = new System.Drawing.Size(40, 17);
			this.Label9.TabIndex = 23;
			this.Label9.Text = "Green";
			// 
			// 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(128, 72);
			this.Label8.Name = "Label8";
			this.Label8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label8.Size = new System.Drawing.Size(25, 17);
			this.Label8.TabIndex = 22;
			this.Label8.Text = "Red";
			// 
			// 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(112, 56);
			this.Label7.Name = "Label7";
			this.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label7.Size = new System.Drawing.Size(97, 17);
			this.Label7.TabIndex = 18;
			this.Label7.Text = "Background Color";
			// 
			// Label6
			// 
			this.Label6.BackColor = System.Drawing.SystemColors.Control;
			this.Label6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label6.Font = new System.Drawing.Font("Arial", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Label6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label6.Location = new System.Drawing.Point(16, 120);
			this.Label6.Name = "Label6";
			this.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label6.Size = new System.Drawing.Size(32, 17);
			this.Label6.TabIndex = 14;
			this.Label6.Text = "Blue";
			// 
			// 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(8, 96);
			this.Label5.Name = "Label5";
			this.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label5.Size = new System.Drawing.Size(40, 17);
			this.Label5.TabIndex = 13;
			this.Label5.Text = "Green";
			// 
			// 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(16, 72);
			this.Label4.Name = "Label4";
			this.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label4.Size = new System.Drawing.Size(25, 17);
			this.Label4.TabIndex = 12;
			this.Label4.Text = "Red";
			// 
			// Label3
			// 
			this.Label3.BackColor = System.Drawing.SystemColors.Control;
			this.Label3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label3.Font = new System.Drawing.Font("Arial", 8F, 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, 56);
			this.Label3.Name = "Label3";
			this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label3.Size = new System.Drawing.Size(96, 17);
			this.Label3.TabIndex = 11;
			this.Label3.Text = "Transparent Color";
			// 
			// Label2
			// 
			this.Label2.BackColor = System.Drawing.SystemColors.Control;
			this.Label2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label2.Font = new System.Drawing.Font("Arial", 8F, 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, 24);
			this.Label2.Name = "Label2";
			this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label2.Size = new System.Drawing.Size(136, 17);
			this.Label2.TabIndex = 9;
			this.Label2.Text = "Enable Transparent Color";
			// 
			// Frame1
			// 
			this.Frame1.BackColor = System.Drawing.SystemColors.Control;
			this.Frame1.Controls.Add(this.Text2);
			this.Frame1.Controls.Add(this.Label1);
			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(12, 136);
			this.Frame1.Name = "Frame1";
			this.Frame1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Frame1.Size = new System.Drawing.Size(209, 49);
			this.Frame1.TabIndex = 43;
			this.Frame1.TabStop = false;
			this.Frame1.Text = "Set Overall Transparency Level";
			// 
			// 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(16, 16);
			this.Text2.MaxLength = 0;
			this.Text2.Name = "Text2";
			this.Text2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Text2.Size = new System.Drawing.Size(33, 19);
			this.Text2.TabIndex = 6;
			this.Text2.Text = "128";
			// 
			// 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(56, 16);
			this.Label1.Name = "Label1";
			this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label1.Size = new System.Drawing.Size(104, 17);
			this.Label1.TabIndex = 7;
			this.Label1.Text = "From 0 To 255";
			// 
			// 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(228, 240);
			this.Command3.Name = "Command3";
			this.Command3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command3.Size = new System.Drawing.Size(177, 33);
			this.Command3.TabIndex = 42;
			this.Command3.Text = "Load And Paste Image2";
			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(436, 240);
			this.Command2.Name = "Command2";
			this.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command2.Size = new System.Drawing.Size(177, 33);
			this.Command2.TabIndex = 41;
			this.Command2.Text = "End";
			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(20, 240);
			this.Command1.Name = "Command1";
			this.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command1.Size = new System.Drawing.Size(177, 33);
			this.Command1.TabIndex = 40;
			this.Command1.Text = "Load Image1";
			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.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			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)(64)), ((System.Byte)(0)));
			this.Text1.Location = new System.Drawing.Point(4, 8);
			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(616, 64);
			this.Text1.TabIndex = 39;
			this.Text1.Text = @"The PasteImage method, like the LayerImage method, attaches two images together, allows for overall transparency, setting of a transparent color, clipping, etc. However, the PasteImage method, attaches the center of Image2 to Image1 at the location specified by the x and y parameters. In addition, the PasteImage method can rotate, flip, and mirror Image2 prior to attaching it to Image1. See ImageKit Help documentation for details.";
			// 
			// ImageKit1
			// 
			this.ImageKit1.Location = new System.Drawing.Point(8, 280);
			this.ImageKit1.Name = "ImageKit1";
			this.ImageKit1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("ImageKit1.OcxState")));
			this.ImageKit1.Size = new System.Drawing.Size(608, 280);
			this.ImageKit1.TabIndex = 50;
			// 
			// Form1
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(624, 566);
			this.Controls.Add(this.ImageKit1);
			this.Controls.Add(this.Frame7);
			this.Controls.Add(this.Frame6);
			this.Controls.Add(this.Frame5);
			this.Controls.Add(this.Frame4);
			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.Controls.Add(this.Text1);
			this.Name = "Form1";
			this.Text = "PasteImage Method";
			this.Frame7.ResumeLayout(false);
			this.Frame6.ResumeLayout(false);
			this.Frame5.ResumeLayout(false);
			this.Frame4.ResumeLayout(false);
			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)
		{
			//if it exists, free the saved image data from the memory
			if (OriginalImageHandle != 0) 
			{
				ImageKit1.FreeMemory(OriginalImageHandle);
				OriginalImageHandle = 0;
			}
		
			//display the Open file dialog and choose the image to be loaded...
			if (ImageKit1.File.OpenFileDialog() == false) 
			{
				return;
			}
		
			//load the image file...
			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;
			}
		
			//display the image in scale mode...
			ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale);
		
			//store the original image data so it is not overwritten...
			OriginalImageHandle = ImageKit1.CopyImage(ImageKit1.ImageHandle);
		}

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

		private void Command3_Click(object sender, System.EventArgs e)
		{
			bool ret;
			int Angle;
			bool TurnX;
			bool TurnY;
			short Trans;
			bool TransColor;
			short TransRed;
			short TransGreen;
			short TransBlue;
			short BackRed;
			short BackGreen;
			short BackBlue;
			int x;
			int y;
			bool Clip;
		
			//set the parameter values for the PasteImage method....
			Angle = Convert.ToInt32(Text11.Text) * 100;
		
			TurnX = Convert.ToBoolean(Combo3.Text);
			TurnY = Convert.ToBoolean(Combo4.Text);
		
			Trans = Convert.ToInt16(Text2.Text);
			if (Trans > 255) 
			{
				Trans = 255;
			}
			else if (Trans < 0) 
			{
				Trans = 0;
			}
		
			TransColor = Convert.ToBoolean(Combo1.Text);

			TransRed = Convert.ToInt16(Text3.Text);
			if (TransRed > 255) 
			{
				TransRed = 255;
			}
			else if (TransRed < 0) 
			{
				TransRed = 0;
			}

			TransGreen = Convert.ToInt16(Text4.Text);
			if (TransGreen > 255) 
			{
				TransGreen = 255;
			}
			else if (TransGreen < 0) 
			{
				TransGreen = 0;
			}

			TransBlue = Convert.ToInt16(Text5.Text);
			if (TransBlue > 255) 
			{
				TransBlue = 255;
			}
			else if (TransBlue < 0) 
			{
				TransBlue = 0;
			}

			BackRed = Convert.ToInt16(Text6.Text);
			if (BackRed > 255) 
			{
				BackRed = 255;
			}
			else if (BackRed < 0) 
			{
				BackRed = 0;
			}

			BackGreen = Convert.ToInt16(Text7.Text);
			if (BackGreen > 255) 
			{
				BackGreen = 255;
			}
			else if (BackGreen < 0) 
			{
				BackGreen = 0;
			}

			BackBlue = Convert.ToInt16(Text8.Text);
			if (BackBlue > 255) 
			{
				BackBlue = 255;
			}
			else if (BackBlue < 0) 
			{
				BackBlue = 0;
			}
		
			x = Convert.ToInt32(Text9.Text);
			y = Convert.ToInt32(Text10.Text);
		
			Clip = Convert.ToBoolean(Combo2.Text);
		
			//display the Open file dialog and choose the second image to be loaded...
			if (ImageKit1.File.OpenFileDialog() == false) 
			{
				return;
			}
		
			//load the image file...
			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;
			}
		
			//execute the LayerImage method
			ret = ImageKit1.Effect.PasteImage(OriginalImageHandle, Angle, TurnX, TurnY, Trans, TransColor, TransRed, TransGreen, TransBlue, BackRed, BackGreen, BackBlue, x, y, Clip);

			//if it exists, free the saved image data from the memory
			if (OriginalImageHandle != 0) 
			{
				ImageKit1.FreeMemory(OriginalImageHandle);
				OriginalImageHandle = 0;
			}
		
			//display the results
			ImageKit1.Display(IMAGEKIT7Lib.DispModeConstants.ikScale);
		}
	}
}
