private void InitializeComponent()
		{
			cBlendItems CBlendItems2 = new cBlendItems();
			cFocalPoints CFocalPoints2 = new cFocalPoints();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(CornersDialog));
			this.TableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
			this.OK_Button = new System.Windows.Forms.Button();
			this.Cancel_Button = new System.Windows.Forms.Button();
			this.panShapeHolder = new System.Windows.Forms.Panel();
			this.tbarUpperLeft = new System.Windows.Forms.TrackBar();
			this.tbarUpperRight = new System.Windows.Forms.TrackBar();
			this.tbarLowerLeft = new System.Windows.Forms.TrackBar();
			this.tbarLowerRight = new System.Windows.Forms.TrackBar();
			this.tbarAll = new System.Windows.Forms.TrackBar();
			this.Label1 = new System.Windows.Forms.Label();
			this.Label2 = new System.Windows.Forms.Label();
			this.Label3 = new System.Windows.Forms.Label();
			this.Label4 = new System.Windows.Forms.Label();
			this.Label5 = new System.Windows.Forms.Label();
			this.HSBarSample = new System.Windows.Forms.HScrollBar();
			this.TheShape = new ProgressBar();
			this.TableLayoutPanel1.SuspendLayout();
			this.panShapeHolder.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)this.tbarUpperLeft).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tbarUpperRight).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tbarLowerLeft).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tbarLowerRight).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tbarAll).BeginInit();
			this.SuspendLayout();
			//
			//TableLayoutPanel1
			//
			this.TableLayoutPanel1.Anchor = (System.Windows.Forms.AnchorStyles)(System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
			this.TableLayoutPanel1.ColumnCount = 2;
			this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			this.TableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50f));
			this.TableLayoutPanel1.Controls.Add(this.OK_Button, 0, 0);
			this.TableLayoutPanel1.Controls.Add(this.Cancel_Button, 1, 0);
			this.TableLayoutPanel1.Location = new System.Drawing.Point(185, 302);
			this.TableLayoutPanel1.Name = "TableLayoutPanel1";
			this.TableLayoutPanel1.RowCount = 1;
			this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50f));
			this.TableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29f));
			this.TableLayoutPanel1.Size = new System.Drawing.Size(146, 29);
			this.TableLayoutPanel1.TabIndex = 0;
			//
			//OK_Button
			//
			this.OK_Button.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.OK_Button.Location = new System.Drawing.Point(3, 3);
			this.OK_Button.Name = "OK_Button";
			this.OK_Button.Size = new System.Drawing.Size(67, 23);
			this.OK_Button.TabIndex = 0;
			this.OK_Button.Text = "OK";
			//
			//Cancel_Button
			//
			this.Cancel_Button.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.Cancel_Button.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.Cancel_Button.Location = new System.Drawing.Point(76, 3);
			this.Cancel_Button.Name = "Cancel_Button";
			this.Cancel_Button.Size = new System.Drawing.Size(67, 23);
			this.Cancel_Button.TabIndex = 1;
			this.Cancel_Button.Text = "Cancel";
			//
			//panShapeHolder
			//
			this.panShapeHolder.Controls.Add(this.TheShape);
			this.panShapeHolder.Location = new System.Drawing.Point(71, 54);
			this.panShapeHolder.Name = "panShapeHolder";
			this.panShapeHolder.Size = new System.Drawing.Size(200, 200);
			this.panShapeHolder.TabIndex = 5;
			//
			//tbarUpperLeft
			//
			this.tbarUpperLeft.Location = new System.Drawing.Point(71, 12);
			this.tbarUpperLeft.Maximum = 50;
			this.tbarUpperLeft.Name = "tbarUpperLeft";
			this.tbarUpperLeft.Size = new System.Drawing.Size(125, 45);
			this.tbarUpperLeft.TabIndex = 6;
			this.tbarUpperLeft.TickFrequency = 50;
			//
			//tbarUpperRight
			//
			this.tbarUpperRight.Location = new System.Drawing.Point(289, 54);
			this.tbarUpperRight.Maximum = 100;
			this.tbarUpperRight.Name = "tbarUpperRight";
			this.tbarUpperRight.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.tbarUpperRight.Size = new System.Drawing.Size(45, 125);
			this.tbarUpperRight.TabIndex = 7;
			this.tbarUpperRight.TickFrequency = 50;
			this.tbarUpperRight.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
			//
			//tbarLowerLeft
			//
			this.tbarLowerLeft.Location = new System.Drawing.Point(12, 129);
			this.tbarLowerLeft.Maximum = 50;
			this.tbarLowerLeft.Name = "tbarLowerLeft";
			this.tbarLowerLeft.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.tbarLowerLeft.Size = new System.Drawing.Size(45, 125);
			this.tbarLowerLeft.TabIndex = 8;
			this.tbarLowerLeft.TickFrequency = 50;
			//
			//tbarLowerRight
			//
			this.tbarLowerRight.Location = new System.Drawing.Point(146, 265);
			this.tbarLowerRight.Maximum = 50;
			this.tbarLowerRight.Name = "tbarLowerRight";
			this.tbarLowerRight.Size = new System.Drawing.Size(125, 45);
			this.tbarLowerRight.TabIndex = 9;
			this.tbarLowerRight.TickFrequency = 50;
			this.tbarLowerRight.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
			//
			//tbarAll
			//
			this.tbarAll.Location = new System.Drawing.Point(13, 300);
			this.tbarAll.Maximum = 50;
			this.tbarAll.Name = "tbarAll";
			this.tbarAll.Size = new System.Drawing.Size(125, 45);
			this.tbarAll.TabIndex = 6;
			this.tbarAll.TickFrequency = 50;
			//
			//Label1
			//
			this.Label1.AutoSize = true;
			this.Label1.Location = new System.Drawing.Point(19, 11);
			this.Label1.Name = "Label1";
			this.Label1.Size = new System.Drawing.Size(54, 13);
			this.Label1.TabIndex = 10;
			this.Label1.Text = "UpperLeft";
			//
			//Label2
			//
			this.Label2.AutoSize = true;
			this.Label2.Location = new System.Drawing.Point(274, 42);
			this.Label2.Name = "Label2";
			this.Label2.Size = new System.Drawing.Size(61, 13);
			this.Label2.TabIndex = 10;
			this.Label2.Text = "UpperRight";
			//
			//Label3
			//
			this.Label3.AutoSize = true;
			this.Label3.Location = new System.Drawing.Point(88, 271);
			this.Label3.Name = "Label3";
			this.Label3.Size = new System.Drawing.Size(61, 13);
			this.Label3.TabIndex = 10;
			this.Label3.Text = "LowerRight";
			//
			//Label4
			//
			this.Label4.AutoSize = true;
			this.Label4.Location = new System.Drawing.Point(2, 113);
			this.Label4.Name = "Label4";
			this.Label4.Size = new System.Drawing.Size(54, 13);
			this.Label4.TabIndex = 10;
			this.Label4.Text = "LowerLeft";
			//
			//Label5
			//
			this.Label5.AutoSize = true;
			this.Label5.Location = new System.Drawing.Point(22, 284);
			this.Label5.Name = "Label5";
			this.Label5.Size = new System.Drawing.Size(18, 13);
			this.Label5.TabIndex = 10;
			this.Label5.Text = "All";
			//
			//HSBarSample
			//
			this.HSBarSample.Location = new System.Drawing.Point(55, 253);
			this.HSBarSample.Maximum = 109;
			this.HSBarSample.Name = "HSBarSample";
			this.HSBarSample.Size = new System.Drawing.Size(233, 13);
			this.HSBarSample.TabIndex = 11;
			this.HSBarSample.Value = 100;
			//
			//TheShape
			//
			CBlendItems2.iColor = new System.Drawing.Color[] {
				System.Drawing.Color.White,
				System.Drawing.Color.White
			};
			CBlendItems2.iPoint = new float[] {
				0f,
				1f
			};
			this.TheShape.BarColorBlend = CBlendItems2;
			this.TheShape.BarColorSolid = System.Drawing.Color.Blue;
			this.TheShape.BarColorSolidB = System.Drawing.Color.White;
			this.TheShape.BarLength = ProgressBar.eBarLength.Full;
			this.TheShape.BarLengthValue = Convert.ToInt16(25);
			this.TheShape.BarPadding = new System.Windows.Forms.Padding(0);
			this.TheShape.BarStyleFill = ProgressBar.eBarStyle.Solid;
			this.TheShape.BarStyleHatch = System.Drawing.Drawing2D.HatchStyle.SmallCheckerBoard;
			this.TheShape.BarStyleLinear = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
			this.TheShape.BarStyleTexture = null;
			this.TheShape.BarStyleWrapMode = System.Drawing.Drawing2D.WrapMode.Clamp;
			this.TheShape.BarType = ProgressBar.eBarType.Bar;
			this.TheShape.BorderWidth = Convert.ToInt16(1);
			this.TheShape.Corners.All = Convert.ToInt16(0);
			this.TheShape.Corners.LowerLeft = Convert.ToInt16(0);
			this.TheShape.Corners.LowerRight = Convert.ToInt16(0);
			this.TheShape.Corners.UpperLeft = Convert.ToInt16(0);
			this.TheShape.Corners.UpperRight = Convert.ToInt16(0);
			this.TheShape.CornersApply = ProgressBar.eCornersApply.Both;
			this.TheShape.CylonInterval = Convert.ToInt16(1);
			this.TheShape.CylonMove = 5f;
			this.TheShape.FillDirection = ProgressBar.eFillDirection.Up_Right;
			CFocalPoints2.CenterPoint = (System.Drawing.PointF)resources.GetObject("CFocalPoints2.CenterPoint");
			CFocalPoints2.FocusScales = (System.Drawing.PointF)resources.GetObject("CFocalPoints2.FocusScales");
			this.TheShape.FocalPoints = CFocalPoints2;
			this.TheShape.Location = new System.Drawing.Point(0, 0);
			this.TheShape.Name = "TheShape";
			this.TheShape.Orientation = ProgressBar.eOrientation.Horizontal;
			this.TheShape.Shape = ProgressBar.eShape.Rectangle;
			this.TheShape.ShapeTextFont = new System.Drawing.Font("Arial Black", 30f);
			this.TheShape.ShapeTextRotate = ProgressBar.eRotateText.None;
			this.TheShape.Size = new System.Drawing.Size(200, 200);
			this.TheShape.TabIndex = 0;
			this.TheShape.TextAlignment = System.Drawing.StringAlignment.Center;
			this.TheShape.TextAlignmentVert = System.Drawing.StringAlignment.Center;
			this.TheShape.TextPlacement = ProgressBar.eTextPlacement.OverBar;
			this.TheShape.TextRotate = ProgressBar.eRotateText.None;
			this.TheShape.TextShow = ProgressBar.eTextShow.None;
			this.TheShape.Value = 100;
			//
			//dlgCorners
			//
			this.AcceptButton = this.OK_Button;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.CancelButton = this.Cancel_Button;
			this.ClientSize = new System.Drawing.Size(340, 339);
			this.Controls.Add(this.HSBarSample);
			this.Controls.Add(this.Label2);
			this.Controls.Add(this.tbarUpperRight);
			this.Controls.Add(this.TableLayoutPanel1);
			this.Controls.Add(this.Label4);
			this.Controls.Add(this.Label3);
			this.Controls.Add(this.Label5);
			this.Controls.Add(this.Label1);
			this.Controls.Add(this.panShapeHolder);
			this.Controls.Add(this.tbarLowerRight);
			this.Controls.Add(this.tbarLowerLeft);
			this.Controls.Add(this.tbarAll);
			this.Controls.Add(this.tbarUpperLeft);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "dlgCorners";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Corner Adjustment";
			this.TableLayoutPanel1.ResumeLayout(false);
			this.panShapeHolder.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)this.tbarUpperLeft).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tbarUpperRight).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tbarLowerLeft).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tbarLowerRight).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tbarAll).EndInit();
			this.ResumeLayout(false);
			this.PerformLayout();

		}
		public void LoadABlend(cBlendItems cb)
		{
			StartPointer.pColor = cb.iColor[0];
			StartPointer.pPos = cb.iPoint[0];
			EndPointer.pColor = cb.iColor[cb.iColor.Length - 1];
			EndPointer.pPos = cb.iPoint[cb.iColor.Length - 1];

			if (cb.iColor.Length > 2) {
				for (int i = 1; i <= cb.iColor.Length - 2; i++) {
					MiddlePointers.Add(new cblPointer(cb.iPoint[i], cb.iColor[i], false));
				}
			}
		}
		private void InitializeComponent()
		{
			cBlendItems CBlendItems1 = new cBlendItems();
			cFocalPoints CFocalPoints1 = new cFocalPoints();
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FocalPointsDialog));
			this.butApply = new System.Windows.Forms.Button();
			this.tbarFocalX = new System.Windows.Forms.TrackBar();
			this.tbarFocalY = new System.Windows.Forms.TrackBar();
			this.panShapeHolder = new System.Windows.Forms.Panel();
			this.TheShape = new ProgressBar();
			this.lblFy = new System.Windows.Forms.Label();
			this.lblFx = new System.Windows.Forms.Label();
			this.lblCx = new System.Windows.Forms.Label();
			this.lblCy = new System.Windows.Forms.Label();
			this.butCancel = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)this.tbarFocalX).BeginInit();
			((System.ComponentModel.ISupportInitialize)this.tbarFocalY).BeginInit();
			this.panShapeHolder.SuspendLayout();
			this.SuspendLayout();
			//
			//butApply
			//
			this.butApply.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.butApply.DialogResult = System.Windows.Forms.DialogResult.OK;
			this.butApply.Location = new System.Drawing.Point(106, 301);
			this.butApply.Name = "butApply";
			this.butApply.Size = new System.Drawing.Size(67, 23);
			this.butApply.TabIndex = 0;
			this.butApply.Text = "Apply";
			//
			//tbarFocalX
			//
			this.tbarFocalX.LargeChange = 10;
			this.tbarFocalX.Location = new System.Drawing.Point(12, 218);
			this.tbarFocalX.Maximum = 1000;
			this.tbarFocalX.Name = "tbarFocalX";
			this.tbarFocalX.Size = new System.Drawing.Size(200, 45);
			this.tbarFocalX.TabIndex = 3;
			this.tbarFocalX.TickFrequency = 50;
			this.tbarFocalX.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
			this.tbarFocalX.Value = 500;
			//
			//tbarFocalY
			//
			this.tbarFocalY.Location = new System.Drawing.Point(218, 12);
			this.tbarFocalY.Maximum = 1000;
			this.tbarFocalY.Name = "tbarFocalY";
			this.tbarFocalY.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.tbarFocalY.Size = new System.Drawing.Size(45, 200);
			this.tbarFocalY.TabIndex = 3;
			this.tbarFocalY.TickFrequency = 50;
			this.tbarFocalY.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
			this.tbarFocalY.Value = 500;
			//
			//panShapeHolder
			//
			this.panShapeHolder.Controls.Add(this.TheShape);
			this.panShapeHolder.Location = new System.Drawing.Point(12, 12);
			this.panShapeHolder.Name = "panShapeHolder";
			this.panShapeHolder.Size = new System.Drawing.Size(200, 200);
			this.panShapeHolder.TabIndex = 4;
			//
			//TheShape
			//
			CBlendItems1.iColor = new System.Drawing.Color[] {
				System.Drawing.Color.White,
				System.Drawing.Color.White
			};
			CBlendItems1.iPoint = new float[] {
				0f,
				1f
			};
			this.TheShape.BarColorBlend = CBlendItems1;
			this.TheShape.BarColorSolid = System.Drawing.Color.Blue;
			this.TheShape.BarColorSolidB = System.Drawing.Color.White;
			this.TheShape.BarLength = ProgressBar.eBarLength.Full;
			this.TheShape.BarLengthValue = Convert.ToInt16(25);
			this.TheShape.BarPadding = new System.Windows.Forms.Padding(0);
			this.TheShape.BarStyleFill = ProgressBar.eBarStyle.Solid;
			this.TheShape.BarStyleHatch = System.Drawing.Drawing2D.HatchStyle.SmallCheckerBoard;
			this.TheShape.BarStyleLinear = System.Drawing.Drawing2D.LinearGradientMode.Horizontal;
			this.TheShape.BarStyleTexture = null;
			this.TheShape.BarStyleWrapMode = System.Drawing.Drawing2D.WrapMode.Clamp;
			this.TheShape.BarType = ProgressBar.eBarType.Bar;
			this.TheShape.CylonMove = 5f;
			this.TheShape.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.TheShape.BorderWidth = Convert.ToInt16(1);
			this.TheShape.Corners.All = Convert.ToInt16(0);
			this.TheShape.Corners.LowerLeft = Convert.ToInt16(0);
			this.TheShape.Corners.LowerRight = Convert.ToInt16(0);
			this.TheShape.Corners.UpperLeft = Convert.ToInt16(0);
			this.TheShape.Corners.UpperRight = Convert.ToInt16(0);
			this.TheShape.CornersApply = ProgressBar.eCornersApply.Both;
			this.TheShape.FillDirection = ProgressBar.eFillDirection.Up_Right;
			CFocalPoints1.CenterPoint = (System.Drawing.PointF)resources.GetObject("CFocalPoints1.CenterPoint");
			CFocalPoints1.FocusScales = (System.Drawing.PointF)resources.GetObject("CFocalPoints1.FocusScales");
			this.TheShape.FocalPoints = CFocalPoints1;
			this.TheShape.CylonInterval = Convert.ToInt16(1);
			this.TheShape.Location = new System.Drawing.Point(0, 0);
			this.TheShape.Name = "TheShape";
			this.TheShape.Orientation = ProgressBar.eOrientation.Horizontal;
			this.TheShape.Shape = ProgressBar.eShape.Rectangle;
			this.TheShape.ShapeTextFont = new System.Drawing.Font("Arial Black", 30f);
			this.TheShape.ShapeTextRotate = ProgressBar.eRotateText.None;
			this.TheShape.Size = new System.Drawing.Size(200, 200);
			this.TheShape.TabIndex = 0;
			this.TheShape.TextAlignment = System.Drawing.StringAlignment.Center;
			this.TheShape.TextAlignmentVert = System.Drawing.StringAlignment.Center;
			this.TheShape.TextPlacement = ProgressBar.eTextPlacement.OverBar;
			this.TheShape.TextRotate = ProgressBar.eRotateText.None;
			this.TheShape.TextShow = ProgressBar.eTextShow.None;
			this.TheShape.Value = 100;
			//
			//lblFy
			//
			this.lblFy.Location = new System.Drawing.Point(220, 208);
			this.lblFy.Name = "lblFy";
			this.lblFy.Size = new System.Drawing.Size(37, 17);
			this.lblFy.TabIndex = 5;
			this.lblFy.Text = "0.5";
			this.lblFy.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			//
			//lblFx
			//
			this.lblFx.Location = new System.Drawing.Point(206, 230);
			this.lblFx.Name = "lblFx";
			this.lblFx.Size = new System.Drawing.Size(37, 17);
			this.lblFx.TabIndex = 5;
			this.lblFx.Text = "0.5";
			this.lblFx.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			//
			//lblCx
			//
			this.lblCx.AutoSize = true;
			this.lblCx.Location = new System.Drawing.Point(14, 272);
			this.lblCx.Name = "lblCx";
			this.lblCx.Size = new System.Drawing.Size(48, 13);
			this.lblCx.TabIndex = 6;
			this.lblCx.Text = "Center X";
			//
			//lblCy
			//
			this.lblCy.AutoSize = true;
			this.lblCy.Location = new System.Drawing.Point(132, 272);
			this.lblCy.Name = "lblCy";
			this.lblCy.Size = new System.Drawing.Size(48, 13);
			this.lblCy.TabIndex = 7;
			this.lblCy.Text = "Center Y";
			//
			//butCancel
			//
			this.butCancel.Anchor = System.Windows.Forms.AnchorStyles.None;
			this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
			this.butCancel.Location = new System.Drawing.Point(179, 301);
			this.butCancel.Name = "butCancel";
			this.butCancel.Size = new System.Drawing.Size(67, 23);
			this.butCancel.TabIndex = 0;
			this.butCancel.Text = "Cancel";
			//
			//dlgFocalPoints
			//
			this.AcceptButton = this.butApply;
			this.AutoScaleDimensions = new System.Drawing.SizeF(6f, 13f);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			this.ClientSize = new System.Drawing.Size(258, 336);
			this.Controls.Add(this.butCancel);
			this.Controls.Add(this.butApply);
			this.Controls.Add(this.lblCy);
			this.Controls.Add(this.lblCx);
			this.Controls.Add(this.lblFx);
			this.Controls.Add(this.lblFy);
			this.Controls.Add(this.panShapeHolder);
			this.Controls.Add(this.tbarFocalY);
			this.Controls.Add(this.tbarFocalX);
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "dlgFocalPoints";
			this.ShowInTaskbar = false;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
			this.Text = "Adjust CenterPoint & Focus Scales";
			((System.ComponentModel.ISupportInitialize)this.tbarFocalX).EndInit();
			((System.ComponentModel.ISupportInitialize)this.tbarFocalY).EndInit();
			this.panShapeHolder.ResumeLayout(false);
			this.ResumeLayout(false);
			this.PerformLayout();

		}