Click here to Skip to main content
15,897,187 members
Articles / Multimedia / GDI+

Gradient Maker Application

Rate me:
Please Sign up or sign in to vote.
4.72/5 (33 votes)
20 Oct 20054 min read 92.8K   3.4K   56  
Many web pages have a color graded banner as a background. GradientMaker is a simple graphics utility that allows you to create such images. You can also add text to these images. These can also be used as banners, backgrounds or logos.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Diagnostics;
using System.Drawing.Drawing2D;

namespace automationControls.GradientMaker
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form_Main : System.Windows.Forms.Form
	{
		private System.Windows.Forms.MenuItem menuItem_File;
		private System.Windows.Forms.MenuItem menuItem_FileSave;
		private System.Windows.Forms.MenuItem menuItem_FileExit;
		private System.Windows.Forms.Panel panel_StartColor;
		private System.Windows.Forms.Button button_SelectStartColor;
		private System.Windows.Forms.MainMenu mainMenu_Main;
		private System.Windows.Forms.MenuItem menuItem_FileBar01;
		private System.Windows.Forms.Panel panel_EndColor;
		private System.Windows.Forms.Button button_SelectEndColor;
		private System.Windows.Forms.Panel panel_Gradient;
		private System.Windows.Forms.NumericUpDown numericUpDown_Width;
		private System.Windows.Forms.NumericUpDown numericUpDown_Height;
		private System.Windows.Forms.ComboBox comboBox_GradientMode;
		private System.Windows.Forms.MenuItem menuItem_Edit;
		private System.Windows.Forms.MenuItem menuItem_EditCopy;
		private System.Windows.Forms.MenuItem menuItem_Help;
		private System.Windows.Forms.MenuItem menuItem_HelpAbout;
		private System.Windows.Forms.ComboBox comboBox_StartColor;
		private System.Windows.Forms.ComboBox comboBox_EndColor;
		private System.Windows.Forms.MenuItem menuItem_HelpContents;
		private System.Windows.Forms.MenuItem menuItem_HelpBar01;
		private System.Windows.Forms.TrackBar trackBar_Blend5;
		private System.Windows.Forms.TrackBar trackBar_Blend9;
		private System.Windows.Forms.TrackBar trackBar_Blend8;
		private System.Windows.Forms.TrackBar trackBar_Blend7;
		private System.Windows.Forms.TrackBar trackBar_Blend6;
		private System.Windows.Forms.TrackBar trackBar_Blend4;
		private System.Windows.Forms.TrackBar trackBar_Blend3;
		private System.Windows.Forms.TrackBar trackBar_Blend2;
		private System.Windows.Forms.TrackBar trackBar_Blend1;
		private System.Windows.Forms.Label label_Width;
		private System.Windows.Forms.Label label_Height;
		private System.Windows.Forms.Label label_000;
		private System.Windows.Forms.Label label_100;
		private System.Windows.Forms.Label label_Example;
		private System.Windows.Forms.ToolTip toolTip;
		private System.Windows.Forms.Label label_Angle;
		private System.Windows.Forms.TextBox textBox;
		private System.Windows.Forms.Button button_Font;
		private System.Windows.Forms.RadioButton radioButton_TopLeft;
		private System.Windows.Forms.RadioButton radioButton_TopMiddle;
		private System.Windows.Forms.RadioButton radioButton_TopRight;
		private System.Windows.Forms.RadioButton radioButton_MiddleLeft;
		private System.Windows.Forms.RadioButton radioButton_MiddleMiddle;
		private System.Windows.Forms.RadioButton radioButton_MiddleRight;
		private System.Windows.Forms.RadioButton radioButton_BottomLeft;
		private System.Windows.Forms.RadioButton radioButton_BottomMiddle;
		private System.Windows.Forms.RadioButton radioButton_BottomRight;
		private System.Windows.Forms.Panel panel_TextStartColor;
		private System.Windows.Forms.ComboBox comboBox_TextStartColor;
		private System.Windows.Forms.Button button_TextStartColor;
		private System.Windows.Forms.Label label_TextStartColor;
		private System.Windows.Forms.Panel panel_TextEndColor;
		private System.Windows.Forms.ComboBox comboBox_TextEndColor;
		private System.Windows.Forms.Button button_TextEndColor;
		private System.Windows.Forms.CheckBox checkBox_TextEndColor;
		private System.Windows.Forms.TabControl tabControl_Options;
		private System.Windows.Forms.TabPage tabPage_Image;
		private System.Windows.Forms.TabPage tabPage_Blend;
		private System.Windows.Forms.TabPage tabPage_Text;
		private System.Windows.Forms.Label label_StartColor;
		private System.Windows.Forms.Label label_BorderHeight;
		private System.Windows.Forms.Label label_BorderWidth;
		private System.Windows.Forms.NumericUpDown numericUpDown_BorderHeight;
		private System.Windows.Forms.NumericUpDown numericUpDown_BorderWidth;
		private System.Windows.Forms.Label label_FontExample;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextAngle;
		private System.Windows.Forms.ComboBox comboBox_TextGradientMode;
		private System.Windows.Forms.Label label_TextAngle;
		private System.Windows.Forms.Label label_GradientMode;
		private System.Windows.Forms.Label label_TextAlign;
		private System.Windows.Forms.Label label_TextGradientMode;
		private System.Windows.Forms.TabPage tabPage_TextBlend;
		private System.Windows.Forms.TrackBar trackBar_TextBlend6;
		private System.Windows.Forms.TrackBar trackBar_TextBlend8;
		private System.Windows.Forms.TrackBar trackBar_TextBlend4;
		private System.Windows.Forms.TrackBar trackBar_TextBlend3;
		private System.Windows.Forms.TrackBar trackBar_TextBlend9;
		private System.Windows.Forms.TrackBar trackBar_TextBlend2;
		private System.Windows.Forms.TrackBar trackBar_TextBlend7;
		private System.Windows.Forms.TrackBar trackBar_TextBlend1;
		private System.Windows.Forms.TrackBar trackBar_TextBlend5;
		private System.Windows.Forms.CheckBox checkBox_EnableTextBlend;
		private System.Windows.Forms.Label label_Text100;
		private System.Windows.Forms.Label label_Text000;
		private System.Windows.Forms.CheckBox checkBox_EndColor;
		private System.Windows.Forms.MenuItem menuItem_FileSaveWorkspace;
		private System.Windows.Forms.MenuItem menuItem_FileBa02;
		private System.Windows.Forms.MenuItem menuItem_FileOpenWorkspace;
		private System.Windows.Forms.NumericUpDown numericUpDown_Angle;
		private System.Windows.Forms.Label label_CenterHeight;
		private System.Windows.Forms.Label label_CenterWidth;
		private System.Windows.Forms.NumericUpDown numericUpDown_CenterHeight;
		private System.Windows.Forms.NumericUpDown numericUpDown_CenterWidth;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextCenterWidth;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextCenterHeight;
		private System.Windows.Forms.Label label_TextCenterWidth;
		private System.Windows.Forms.Label label_TextCenterHeight;
		private System.Windows.Forms.Panel panel_ExampleBackground;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextStartAlpha;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextEndAlpha;
		private System.Windows.Forms.Button button_TextLeft;
		private System.Windows.Forms.Button button_TextCenter;
		private System.Windows.Forms.Button button_TextRight;
		private System.Windows.Forms.Label label_TextRotationAngle;
		private System.Windows.Forms.NumericUpDown numericUpDown_TextRotationAngle;
		private System.Windows.Forms.Label label_TextStartAlpha;
		private System.Windows.Forms.Label label_TextEndAlpha;
		private System.Windows.Forms.Panel panel_ScrollPanel;
		private System.Windows.Forms.Label label_AntiAlias;
		private System.Windows.Forms.ComboBox comboBox_AntiAlias;
		private System.Windows.Forms.CheckBox checkBox_ImageEnableBlend;
		private System.Windows.Forms.ListBox listBox_ImageBlendExamples;
		private System.Windows.Forms.Label label_ExampleImageBlends;
		private System.Windows.Forms.ListBox listBox_TextBlendExamples;
		private System.Windows.Forms.Label label_ExampleTextBlends;
		private System.ComponentModel.IContainer components;

		/// <summary>
		/// Load the main form
		/// </summary>
		public Form_Main()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();
		}

		/// <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()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form_Main));
			this.comboBox_StartColor = new System.Windows.Forms.ComboBox();
			this.button_SelectStartColor = new System.Windows.Forms.Button();
			this.panel_StartColor = new System.Windows.Forms.Panel();
			this.mainMenu_Main = new System.Windows.Forms.MainMenu();
			this.menuItem_File = new System.Windows.Forms.MenuItem();
			this.menuItem_FileSave = new System.Windows.Forms.MenuItem();
			this.menuItem_FileBar01 = new System.Windows.Forms.MenuItem();
			this.menuItem_FileOpenWorkspace = new System.Windows.Forms.MenuItem();
			this.menuItem_FileSaveWorkspace = new System.Windows.Forms.MenuItem();
			this.menuItem_FileBa02 = new System.Windows.Forms.MenuItem();
			this.menuItem_FileExit = new System.Windows.Forms.MenuItem();
			this.menuItem_Edit = new System.Windows.Forms.MenuItem();
			this.menuItem_EditCopy = new System.Windows.Forms.MenuItem();
			this.menuItem_Help = new System.Windows.Forms.MenuItem();
			this.menuItem_HelpContents = new System.Windows.Forms.MenuItem();
			this.menuItem_HelpBar01 = new System.Windows.Forms.MenuItem();
			this.menuItem_HelpAbout = new System.Windows.Forms.MenuItem();
			this.comboBox_EndColor = new System.Windows.Forms.ComboBox();
			this.button_SelectEndColor = new System.Windows.Forms.Button();
			this.panel_EndColor = new System.Windows.Forms.Panel();
			this.panel_Gradient = new System.Windows.Forms.Panel();
			this.label_Angle = new System.Windows.Forms.Label();
			this.comboBox_GradientMode = new System.Windows.Forms.ComboBox();
			this.numericUpDown_Width = new System.Windows.Forms.NumericUpDown();
			this.label_Width = new System.Windows.Forms.Label();
			this.numericUpDown_Height = new System.Windows.Forms.NumericUpDown();
			this.label_Height = new System.Windows.Forms.Label();
			this.trackBar_Blend1 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend7 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend8 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend9 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend6 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend5 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend4 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend3 = new System.Windows.Forms.TrackBar();
			this.trackBar_Blend2 = new System.Windows.Forms.TrackBar();
			this.label_100 = new System.Windows.Forms.Label();
			this.label_000 = new System.Windows.Forms.Label();
			this.label_Example = new System.Windows.Forms.Label();
			this.toolTip = new System.Windows.Forms.ToolTip(this.components);
			this.trackBar_TextBlend6 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend8 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend4 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend3 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend9 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend2 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend7 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend1 = new System.Windows.Forms.TrackBar();
			this.trackBar_TextBlend5 = new System.Windows.Forms.TrackBar();
			this.radioButton_BottomRight = new System.Windows.Forms.RadioButton();
			this.radioButton_BottomMiddle = new System.Windows.Forms.RadioButton();
			this.radioButton_BottomLeft = new System.Windows.Forms.RadioButton();
			this.radioButton_MiddleRight = new System.Windows.Forms.RadioButton();
			this.radioButton_MiddleMiddle = new System.Windows.Forms.RadioButton();
			this.radioButton_MiddleLeft = new System.Windows.Forms.RadioButton();
			this.radioButton_TopRight = new System.Windows.Forms.RadioButton();
			this.radioButton_TopMiddle = new System.Windows.Forms.RadioButton();
			this.radioButton_TopLeft = new System.Windows.Forms.RadioButton();
			this.button_Font = new System.Windows.Forms.Button();
			this.textBox = new System.Windows.Forms.TextBox();
			this.panel_TextStartColor = new System.Windows.Forms.Panel();
			this.comboBox_TextStartColor = new System.Windows.Forms.ComboBox();
			this.button_TextStartColor = new System.Windows.Forms.Button();
			this.label_TextStartColor = new System.Windows.Forms.Label();
			this.checkBox_TextEndColor = new System.Windows.Forms.CheckBox();
			this.panel_TextEndColor = new System.Windows.Forms.Panel();
			this.comboBox_TextEndColor = new System.Windows.Forms.ComboBox();
			this.button_TextEndColor = new System.Windows.Forms.Button();
			this.tabControl_Options = new System.Windows.Forms.TabControl();
			this.tabPage_Image = new System.Windows.Forms.TabPage();
			this.numericUpDown_CenterWidth = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_CenterHeight = new System.Windows.Forms.NumericUpDown();
			this.label_CenterWidth = new System.Windows.Forms.Label();
			this.label_CenterHeight = new System.Windows.Forms.Label();
			this.numericUpDown_Angle = new System.Windows.Forms.NumericUpDown();
			this.label_GradientMode = new System.Windows.Forms.Label();
			this.label_StartColor = new System.Windows.Forms.Label();
			this.checkBox_EndColor = new System.Windows.Forms.CheckBox();
			this.tabPage_Blend = new System.Windows.Forms.TabPage();
			this.listBox_ImageBlendExamples = new System.Windows.Forms.ListBox();
			this.checkBox_ImageEnableBlend = new System.Windows.Forms.CheckBox();
			this.label_ExampleImageBlends = new System.Windows.Forms.Label();
			this.tabPage_Text = new System.Windows.Forms.TabPage();
			this.comboBox_AntiAlias = new System.Windows.Forms.ComboBox();
			this.label_AntiAlias = new System.Windows.Forms.Label();
			this.numericUpDown_TextRotationAngle = new System.Windows.Forms.NumericUpDown();
			this.label_TextRotationAngle = new System.Windows.Forms.Label();
			this.button_TextRight = new System.Windows.Forms.Button();
			this.button_TextCenter = new System.Windows.Forms.Button();
			this.button_TextLeft = new System.Windows.Forms.Button();
			this.numericUpDown_TextEndAlpha = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_TextStartAlpha = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_TextCenterWidth = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_TextCenterHeight = new System.Windows.Forms.NumericUpDown();
			this.label_TextCenterWidth = new System.Windows.Forms.Label();
			this.label_TextCenterHeight = new System.Windows.Forms.Label();
			this.label_TextGradientMode = new System.Windows.Forms.Label();
			this.numericUpDown_TextAngle = new System.Windows.Forms.NumericUpDown();
			this.comboBox_TextGradientMode = new System.Windows.Forms.ComboBox();
			this.label_FontExample = new System.Windows.Forms.Label();
			this.numericUpDown_BorderWidth = new System.Windows.Forms.NumericUpDown();
			this.numericUpDown_BorderHeight = new System.Windows.Forms.NumericUpDown();
			this.label_BorderWidth = new System.Windows.Forms.Label();
			this.label_BorderHeight = new System.Windows.Forms.Label();
			this.label_TextAlign = new System.Windows.Forms.Label();
			this.label_TextStartAlpha = new System.Windows.Forms.Label();
			this.label_TextEndAlpha = new System.Windows.Forms.Label();
			this.label_TextAngle = new System.Windows.Forms.Label();
			this.tabPage_TextBlend = new System.Windows.Forms.TabPage();
			this.checkBox_EnableTextBlend = new System.Windows.Forms.CheckBox();
			this.label_Text100 = new System.Windows.Forms.Label();
			this.label_Text000 = new System.Windows.Forms.Label();
			this.panel_ExampleBackground = new System.Windows.Forms.Panel();
			this.panel_ScrollPanel = new System.Windows.Forms.Panel();
			this.listBox_TextBlendExamples = new System.Windows.Forms.ListBox();
			this.label_ExampleTextBlends = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Width)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Height)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend7)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend8)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend9)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend6)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend5)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend4)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend3)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend2)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend6)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend8)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend4)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend3)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend9)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend2)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend7)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend1)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend5)).BeginInit();
			this.tabControl_Options.SuspendLayout();
			this.tabPage_Image.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_CenterWidth)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_CenterHeight)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Angle)).BeginInit();
			this.tabPage_Blend.SuspendLayout();
			this.tabPage_Text.SuspendLayout();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextRotationAngle)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextEndAlpha)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextStartAlpha)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextCenterWidth)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextCenterHeight)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextAngle)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BorderWidth)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BorderHeight)).BeginInit();
			this.tabPage_TextBlend.SuspendLayout();
			this.panel_ExampleBackground.SuspendLayout();
			this.panel_ScrollPanel.SuspendLayout();
			this.SuspendLayout();
			// 
			// comboBox_StartColor
			// 
			this.comboBox_StartColor.Location = new System.Drawing.Point(48, 200);
			this.comboBox_StartColor.Name = "comboBox_StartColor";
			this.comboBox_StartColor.Size = new System.Drawing.Size(121, 21);
			this.comboBox_StartColor.TabIndex = 14;
			this.comboBox_StartColor.Text = "comboBox1";
			this.comboBox_StartColor.SelectedIndexChanged += new System.EventHandler(this.comboBox_StartColor_SelectedIndexChanged);
			// 
			// button_SelectStartColor
			// 
			this.button_SelectStartColor.Location = new System.Drawing.Point(184, 200);
			this.button_SelectStartColor.Name = "button_SelectStartColor";
			this.button_SelectStartColor.Size = new System.Drawing.Size(32, 24);
			this.button_SelectStartColor.TabIndex = 15;
			this.button_SelectStartColor.Text = "...";
			this.button_SelectStartColor.Click += new System.EventHandler(this.button_SelectStartColor_Click);
			// 
			// panel_StartColor
			// 
			this.panel_StartColor.BackColor = System.Drawing.Color.Black;
			this.panel_StartColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel_StartColor.Location = new System.Drawing.Point(16, 200);
			this.panel_StartColor.Name = "panel_StartColor";
			this.panel_StartColor.Size = new System.Drawing.Size(24, 24);
			this.panel_StartColor.TabIndex = 13;
			this.panel_StartColor.BackColorChanged += new System.EventHandler(this.panel_StartColor_BackColorChanged);
			// 
			// mainMenu_Main
			// 
			this.mainMenu_Main.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menuItem_File,
																						  this.menuItem_Edit,
																						  this.menuItem_Help});
			// 
			// menuItem_File
			// 
			this.menuItem_File.Index = 0;
			this.menuItem_File.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menuItem_FileSave,
																						  this.menuItem_FileBar01,
																						  this.menuItem_FileOpenWorkspace,
																						  this.menuItem_FileSaveWorkspace,
																						  this.menuItem_FileBa02,
																						  this.menuItem_FileExit});
			this.menuItem_File.Text = "&File";
			// 
			// menuItem_FileSave
			// 
			this.menuItem_FileSave.Index = 0;
			this.menuItem_FileSave.Shortcut = System.Windows.Forms.Shortcut.CtrlS;
			this.menuItem_FileSave.Text = "&Save Image...";
			this.menuItem_FileSave.Click += new System.EventHandler(this.menuItem_FileSave_Click);
			// 
			// menuItem_FileBar01
			// 
			this.menuItem_FileBar01.Index = 1;
			this.menuItem_FileBar01.Text = "-";
			// 
			// menuItem_FileOpenWorkspace
			// 
			this.menuItem_FileOpenWorkspace.Index = 2;
			this.menuItem_FileOpenWorkspace.Shortcut = System.Windows.Forms.Shortcut.CtrlO;
			this.menuItem_FileOpenWorkspace.Text = "Open Workspace...";
			this.menuItem_FileOpenWorkspace.Click += new System.EventHandler(this.menuItem_FileOpenWorkspace_Click);
			// 
			// menuItem_FileSaveWorkspace
			// 
			this.menuItem_FileSaveWorkspace.Index = 3;
			this.menuItem_FileSaveWorkspace.Shortcut = System.Windows.Forms.Shortcut.CtrlW;
			this.menuItem_FileSaveWorkspace.Text = "Save Workspace...";
			this.menuItem_FileSaveWorkspace.Click += new System.EventHandler(this.menuItem_FileSaveWorkspace_Click);
			// 
			// menuItem_FileBa02
			// 
			this.menuItem_FileBa02.Index = 4;
			this.menuItem_FileBa02.Text = "-";
			// 
			// menuItem_FileExit
			// 
			this.menuItem_FileExit.Index = 5;
			this.menuItem_FileExit.Text = "E&xit";
			this.menuItem_FileExit.Click += new System.EventHandler(this.menuItem_FileExit_Click);
			// 
			// menuItem_Edit
			// 
			this.menuItem_Edit.Index = 1;
			this.menuItem_Edit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menuItem_EditCopy});
			this.menuItem_Edit.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
			this.menuItem_Edit.Text = "&Edit";
			// 
			// menuItem_EditCopy
			// 
			this.menuItem_EditCopy.Index = 0;
			this.menuItem_EditCopy.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
			this.menuItem_EditCopy.Text = "&Copy";
			this.menuItem_EditCopy.Click += new System.EventHandler(this.menuItem_EditCopy_Click);
			// 
			// menuItem_Help
			// 
			this.menuItem_Help.Index = 2;
			this.menuItem_Help.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																						  this.menuItem_HelpContents,
																						  this.menuItem_HelpBar01,
																						  this.menuItem_HelpAbout});
			this.menuItem_Help.Text = "&Help";
			// 
			// menuItem_HelpContents
			// 
			this.menuItem_HelpContents.Index = 0;
			this.menuItem_HelpContents.Shortcut = System.Windows.Forms.Shortcut.F1;
			this.menuItem_HelpContents.Text = "Contents...";
			this.menuItem_HelpContents.Click += new System.EventHandler(this.menuItem_HelpContents_Click);
			// 
			// menuItem_HelpBar01
			// 
			this.menuItem_HelpBar01.Index = 1;
			this.menuItem_HelpBar01.Text = "-";
			// 
			// menuItem_HelpAbout
			// 
			this.menuItem_HelpAbout.Index = 2;
			this.menuItem_HelpAbout.Text = "About...";
			this.menuItem_HelpAbout.Click += new System.EventHandler(this.menuItem_HelpAbout_Click);
			// 
			// comboBox_EndColor
			// 
			this.comboBox_EndColor.Location = new System.Drawing.Point(48, 264);
			this.comboBox_EndColor.Name = "comboBox_EndColor";
			this.comboBox_EndColor.Size = new System.Drawing.Size(121, 21);
			this.comboBox_EndColor.TabIndex = 18;
			this.comboBox_EndColor.Text = "comboBox1";
			this.comboBox_EndColor.SelectedIndexChanged += new System.EventHandler(this.comboBox_EndColor_SelectedIndexChanged);
			// 
			// button_SelectEndColor
			// 
			this.button_SelectEndColor.Location = new System.Drawing.Point(184, 264);
			this.button_SelectEndColor.Name = "button_SelectEndColor";
			this.button_SelectEndColor.Size = new System.Drawing.Size(32, 24);
			this.button_SelectEndColor.TabIndex = 19;
			this.button_SelectEndColor.Text = "...";
			this.button_SelectEndColor.Click += new System.EventHandler(this.button_SelectEndColor_Click);
			// 
			// panel_EndColor
			// 
			this.panel_EndColor.BackColor = System.Drawing.Color.White;
			this.panel_EndColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel_EndColor.Location = new System.Drawing.Point(16, 264);
			this.panel_EndColor.Name = "panel_EndColor";
			this.panel_EndColor.Size = new System.Drawing.Size(24, 24);
			this.panel_EndColor.TabIndex = 17;
			this.panel_EndColor.BackColorChanged += new System.EventHandler(this.panel_EndColor_BackColorChanged);
			// 
			// panel_Gradient
			// 
			this.panel_Gradient.Location = new System.Drawing.Point(8, 8);
			this.panel_Gradient.Name = "panel_Gradient";
			this.panel_Gradient.Size = new System.Drawing.Size(400, 200);
			this.panel_Gradient.TabIndex = 0;
			this.panel_Gradient.Paint += new System.Windows.Forms.PaintEventHandler(this.panel_Gradient_Paint);
			// 
			// label_Angle
			// 
			this.label_Angle.Enabled = false;
			this.label_Angle.Location = new System.Drawing.Point(16, 104);
			this.label_Angle.Name = "label_Angle";
			this.label_Angle.Size = new System.Drawing.Size(112, 40);
			this.label_Angle.TabIndex = 6;
			this.label_Angle.Text = "Gradient Angle (Degrees)";
			this.label_Angle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// comboBox_GradientMode
			// 
			this.comboBox_GradientMode.Items.AddRange(new object[] {
																	   "Horizontal",
																	   "Vertical",
																	   "Backward Diagonal",
																	   "Forward Diagonal",
																	   "Angle",
																	   "Center"});
			this.comboBox_GradientMode.Location = new System.Drawing.Point(120, 80);
			this.comboBox_GradientMode.Name = "comboBox_GradientMode";
			this.comboBox_GradientMode.Size = new System.Drawing.Size(120, 21);
			this.comboBox_GradientMode.TabIndex = 5;
			this.comboBox_GradientMode.SelectedIndexChanged += new System.EventHandler(this.comboBox_GradientMode_SelectedIndexChanged);
			// 
			// numericUpDown_Width
			// 
			this.numericUpDown_Width.Location = new System.Drawing.Point(120, 48);
			this.numericUpDown_Width.Maximum = new System.Decimal(new int[] {
																				99999,
																				0,
																				0,
																				0});
			this.numericUpDown_Width.Minimum = new System.Decimal(new int[] {
																				1,
																				0,
																				0,
																				0});
			this.numericUpDown_Width.Name = "numericUpDown_Width";
			this.numericUpDown_Width.Size = new System.Drawing.Size(64, 20);
			this.numericUpDown_Width.TabIndex = 3;
			this.numericUpDown_Width.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_Width.Value = new System.Decimal(new int[] {
																			  1,
																			  0,
																			  0,
																			  0});
			this.numericUpDown_Width.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_Width_KeyUp);
			this.numericUpDown_Width.ValueChanged += new System.EventHandler(this.numericUpDown_Width_ValueChanged);
			// 
			// label_Width
			// 
			this.label_Width.Location = new System.Drawing.Point(16, 48);
			this.label_Width.Name = "label_Width";
			this.label_Width.Size = new System.Drawing.Size(48, 23);
			this.label_Width.TabIndex = 2;
			this.label_Width.Text = "Width";
			// 
			// numericUpDown_Height
			// 
			this.numericUpDown_Height.Location = new System.Drawing.Point(120, 16);
			this.numericUpDown_Height.Maximum = new System.Decimal(new int[] {
																				 99999,
																				 0,
																				 0,
																				 0});
			this.numericUpDown_Height.Minimum = new System.Decimal(new int[] {
																				 1,
																				 0,
																				 0,
																				 0});
			this.numericUpDown_Height.Name = "numericUpDown_Height";
			this.numericUpDown_Height.Size = new System.Drawing.Size(64, 20);
			this.numericUpDown_Height.TabIndex = 1;
			this.numericUpDown_Height.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_Height.Value = new System.Decimal(new int[] {
																			   1,
																			   0,
																			   0,
																			   0});
			this.numericUpDown_Height.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_Height_KeyUp);
			this.numericUpDown_Height.ValueChanged += new System.EventHandler(this.numericUpDown_Height_ValueChanged);
			// 
			// label_Height
			// 
			this.label_Height.Location = new System.Drawing.Point(16, 16);
			this.label_Height.Name = "label_Height";
			this.label_Height.Size = new System.Drawing.Size(48, 24);
			this.label_Height.TabIndex = 0;
			this.label_Height.Text = "Height";
			// 
			// trackBar_Blend1
			// 
			this.trackBar_Blend1.AutoSize = false;
			this.trackBar_Blend1.Location = new System.Drawing.Point(32, 40);
			this.trackBar_Blend1.Maximum = 100;
			this.trackBar_Blend1.Name = "trackBar_Blend1";
			this.trackBar_Blend1.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend1.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend1.TabIndex = 3;
			this.trackBar_Blend1.TickFrequency = 10;
			this.trackBar_Blend1.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend1, "0 %");
			this.trackBar_Blend1.Scroll += new System.EventHandler(this.trackBar_Blend1_Scroll);
			// 
			// trackBar_Blend7
			// 
			this.trackBar_Blend7.AutoSize = false;
			this.trackBar_Blend7.Location = new System.Drawing.Point(224, 40);
			this.trackBar_Blend7.Maximum = 100;
			this.trackBar_Blend7.Name = "trackBar_Blend7";
			this.trackBar_Blend7.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend7.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend7.TabIndex = 9;
			this.trackBar_Blend7.TickFrequency = 10;
			this.trackBar_Blend7.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend7, "90 %");
			this.trackBar_Blend7.Value = 90;
			this.trackBar_Blend7.Scroll += new System.EventHandler(this.trackBar_Blend7_Scroll);
			// 
			// trackBar_Blend8
			// 
			this.trackBar_Blend8.AutoSize = false;
			this.trackBar_Blend8.Location = new System.Drawing.Point(256, 40);
			this.trackBar_Blend8.Maximum = 100;
			this.trackBar_Blend8.Name = "trackBar_Blend8";
			this.trackBar_Blend8.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend8.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend8.TabIndex = 10;
			this.trackBar_Blend8.TickFrequency = 10;
			this.trackBar_Blend8.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend8, "95 %");
			this.trackBar_Blend8.Value = 95;
			this.trackBar_Blend8.Scroll += new System.EventHandler(this.trackBar_Blend8_Scroll);
			// 
			// trackBar_Blend9
			// 
			this.trackBar_Blend9.AutoSize = false;
			this.trackBar_Blend9.Location = new System.Drawing.Point(288, 40);
			this.trackBar_Blend9.Maximum = 100;
			this.trackBar_Blend9.Name = "trackBar_Blend9";
			this.trackBar_Blend9.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend9.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend9.TabIndex = 11;
			this.trackBar_Blend9.TickFrequency = 10;
			this.trackBar_Blend9.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend9, "100 %");
			this.trackBar_Blend9.Value = 100;
			this.trackBar_Blend9.Scroll += new System.EventHandler(this.trackBar_Blend9_Scroll);
			// 
			// trackBar_Blend6
			// 
			this.trackBar_Blend6.AutoSize = false;
			this.trackBar_Blend6.Location = new System.Drawing.Point(192, 40);
			this.trackBar_Blend6.Maximum = 100;
			this.trackBar_Blend6.Name = "trackBar_Blend6";
			this.trackBar_Blend6.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend6.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend6.TabIndex = 8;
			this.trackBar_Blend6.TickFrequency = 10;
			this.trackBar_Blend6.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend6, "80 %");
			this.trackBar_Blend6.Value = 80;
			this.trackBar_Blend6.Scroll += new System.EventHandler(this.trackBar_Blend6_Scroll);
			// 
			// trackBar_Blend5
			// 
			this.trackBar_Blend5.AutoSize = false;
			this.trackBar_Blend5.Location = new System.Drawing.Point(160, 40);
			this.trackBar_Blend5.Maximum = 100;
			this.trackBar_Blend5.Name = "trackBar_Blend5";
			this.trackBar_Blend5.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend5.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend5.TabIndex = 7;
			this.trackBar_Blend5.TickFrequency = 10;
			this.trackBar_Blend5.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend5, "70 %");
			this.trackBar_Blend5.Value = 70;
			this.trackBar_Blend5.Scroll += new System.EventHandler(this.trackBar_Blend5_Scroll);
			// 
			// trackBar_Blend4
			// 
			this.trackBar_Blend4.AutoSize = false;
			this.trackBar_Blend4.Location = new System.Drawing.Point(128, 40);
			this.trackBar_Blend4.Maximum = 100;
			this.trackBar_Blend4.Name = "trackBar_Blend4";
			this.trackBar_Blend4.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend4.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend4.TabIndex = 6;
			this.trackBar_Blend4.TickFrequency = 10;
			this.trackBar_Blend4.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend4, "60 %");
			this.trackBar_Blend4.Value = 60;
			this.trackBar_Blend4.Scroll += new System.EventHandler(this.trackBar_Blend4_Scroll);
			// 
			// trackBar_Blend3
			// 
			this.trackBar_Blend3.AutoSize = false;
			this.trackBar_Blend3.Location = new System.Drawing.Point(96, 40);
			this.trackBar_Blend3.Maximum = 100;
			this.trackBar_Blend3.Name = "trackBar_Blend3";
			this.trackBar_Blend3.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend3.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend3.TabIndex = 5;
			this.trackBar_Blend3.TickFrequency = 10;
			this.trackBar_Blend3.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend3, "40 %");
			this.trackBar_Blend3.Value = 40;
			this.trackBar_Blend3.Scroll += new System.EventHandler(this.trackBar_Blend3_Scroll);
			// 
			// trackBar_Blend2
			// 
			this.trackBar_Blend2.AutoSize = false;
			this.trackBar_Blend2.Location = new System.Drawing.Point(64, 40);
			this.trackBar_Blend2.Maximum = 100;
			this.trackBar_Blend2.Name = "trackBar_Blend2";
			this.trackBar_Blend2.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_Blend2.Size = new System.Drawing.Size(32, 120);
			this.trackBar_Blend2.TabIndex = 4;
			this.trackBar_Blend2.TickFrequency = 10;
			this.trackBar_Blend2.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_Blend2, "20 %");
			this.trackBar_Blend2.Value = 20;
			this.trackBar_Blend2.Scroll += new System.EventHandler(this.trackBar_Blend2_Scroll);
			// 
			// label_100
			// 
			this.label_100.Location = new System.Drawing.Point(8, 48);
			this.label_100.Name = "label_100";
			this.label_100.TabIndex = 1;
			this.label_100.Text = "100";
			// 
			// label_000
			// 
			this.label_000.Location = new System.Drawing.Point(16, 136);
			this.label_000.Name = "label_000";
			this.label_000.Size = new System.Drawing.Size(32, 23);
			this.label_000.TabIndex = 2;
			this.label_000.Text = "0";
			// 
			// label_Example
			// 
			this.label_Example.Location = new System.Drawing.Point(8, 8);
			this.label_Example.Name = "label_Example";
			this.label_Example.TabIndex = 1;
			this.label_Example.Text = "Example";
			// 
			// trackBar_TextBlend6
			// 
			this.trackBar_TextBlend6.AutoSize = false;
			this.trackBar_TextBlend6.Location = new System.Drawing.Point(192, 40);
			this.trackBar_TextBlend6.Maximum = 100;
			this.trackBar_TextBlend6.Name = "trackBar_TextBlend6";
			this.trackBar_TextBlend6.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend6.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend6.TabIndex = 8;
			this.trackBar_TextBlend6.TickFrequency = 10;
			this.trackBar_TextBlend6.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend6, "80 %");
			this.trackBar_TextBlend6.Value = 80;
			this.trackBar_TextBlend6.Scroll += new System.EventHandler(this.trackBar_TextBlend6_Scroll);
			// 
			// trackBar_TextBlend8
			// 
			this.trackBar_TextBlend8.AutoSize = false;
			this.trackBar_TextBlend8.Location = new System.Drawing.Point(256, 40);
			this.trackBar_TextBlend8.Maximum = 100;
			this.trackBar_TextBlend8.Name = "trackBar_TextBlend8";
			this.trackBar_TextBlend8.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend8.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend8.TabIndex = 10;
			this.trackBar_TextBlend8.TickFrequency = 10;
			this.trackBar_TextBlend8.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend8, "95 %");
			this.trackBar_TextBlend8.Value = 95;
			this.trackBar_TextBlend8.Scroll += new System.EventHandler(this.trackBar_TextBlend8_Scroll);
			// 
			// trackBar_TextBlend4
			// 
			this.trackBar_TextBlend4.AutoSize = false;
			this.trackBar_TextBlend4.Location = new System.Drawing.Point(128, 40);
			this.trackBar_TextBlend4.Maximum = 100;
			this.trackBar_TextBlend4.Name = "trackBar_TextBlend4";
			this.trackBar_TextBlend4.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend4.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend4.TabIndex = 6;
			this.trackBar_TextBlend4.TickFrequency = 10;
			this.trackBar_TextBlend4.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend4, "60 %");
			this.trackBar_TextBlend4.Value = 60;
			this.trackBar_TextBlend4.Scroll += new System.EventHandler(this.trackBar_TextBlend4_Scroll);
			// 
			// trackBar_TextBlend3
			// 
			this.trackBar_TextBlend3.AutoSize = false;
			this.trackBar_TextBlend3.Location = new System.Drawing.Point(96, 40);
			this.trackBar_TextBlend3.Maximum = 100;
			this.trackBar_TextBlend3.Name = "trackBar_TextBlend3";
			this.trackBar_TextBlend3.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend3.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend3.TabIndex = 5;
			this.trackBar_TextBlend3.TickFrequency = 10;
			this.trackBar_TextBlend3.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend3, "40 %");
			this.trackBar_TextBlend3.Value = 40;
			this.trackBar_TextBlend3.Scroll += new System.EventHandler(this.trackBar_TextBlend3_Scroll);
			// 
			// trackBar_TextBlend9
			// 
			this.trackBar_TextBlend9.AutoSize = false;
			this.trackBar_TextBlend9.Location = new System.Drawing.Point(288, 40);
			this.trackBar_TextBlend9.Maximum = 100;
			this.trackBar_TextBlend9.Name = "trackBar_TextBlend9";
			this.trackBar_TextBlend9.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend9.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend9.TabIndex = 11;
			this.trackBar_TextBlend9.TickFrequency = 10;
			this.trackBar_TextBlend9.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend9, "100 %");
			this.trackBar_TextBlend9.Value = 100;
			this.trackBar_TextBlend9.Scroll += new System.EventHandler(this.trackBar_TextBlend9_Scroll);
			// 
			// trackBar_TextBlend2
			// 
			this.trackBar_TextBlend2.AutoSize = false;
			this.trackBar_TextBlend2.Location = new System.Drawing.Point(64, 40);
			this.trackBar_TextBlend2.Maximum = 100;
			this.trackBar_TextBlend2.Name = "trackBar_TextBlend2";
			this.trackBar_TextBlend2.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend2.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend2.TabIndex = 4;
			this.trackBar_TextBlend2.TickFrequency = 10;
			this.trackBar_TextBlend2.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend2, "20 %");
			this.trackBar_TextBlend2.Value = 20;
			this.trackBar_TextBlend2.Scroll += new System.EventHandler(this.trackBar_TextBlend2_Scroll);
			// 
			// trackBar_TextBlend7
			// 
			this.trackBar_TextBlend7.AutoSize = false;
			this.trackBar_TextBlend7.Location = new System.Drawing.Point(224, 40);
			this.trackBar_TextBlend7.Maximum = 100;
			this.trackBar_TextBlend7.Name = "trackBar_TextBlend7";
			this.trackBar_TextBlend7.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend7.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend7.TabIndex = 9;
			this.trackBar_TextBlend7.TickFrequency = 10;
			this.trackBar_TextBlend7.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend7, "90 %");
			this.trackBar_TextBlend7.Value = 90;
			this.trackBar_TextBlend7.Scroll += new System.EventHandler(this.trackBar_TextBlend7_Scroll);
			// 
			// trackBar_TextBlend1
			// 
			this.trackBar_TextBlend1.AutoSize = false;
			this.trackBar_TextBlend1.Location = new System.Drawing.Point(32, 40);
			this.trackBar_TextBlend1.Maximum = 100;
			this.trackBar_TextBlend1.Name = "trackBar_TextBlend1";
			this.trackBar_TextBlend1.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend1.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend1.TabIndex = 3;
			this.trackBar_TextBlend1.TickFrequency = 10;
			this.trackBar_TextBlend1.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend1, "0 %");
			this.trackBar_TextBlend1.Scroll += new System.EventHandler(this.trackBar_TextBlend1_Scroll);
			// 
			// trackBar_TextBlend5
			// 
			this.trackBar_TextBlend5.AutoSize = false;
			this.trackBar_TextBlend5.Location = new System.Drawing.Point(160, 40);
			this.trackBar_TextBlend5.Maximum = 100;
			this.trackBar_TextBlend5.Name = "trackBar_TextBlend5";
			this.trackBar_TextBlend5.Orientation = System.Windows.Forms.Orientation.Vertical;
			this.trackBar_TextBlend5.Size = new System.Drawing.Size(32, 120);
			this.trackBar_TextBlend5.TabIndex = 7;
			this.trackBar_TextBlend5.TickFrequency = 10;
			this.trackBar_TextBlend5.TickStyle = System.Windows.Forms.TickStyle.Both;
			this.toolTip.SetToolTip(this.trackBar_TextBlend5, "70 %");
			this.trackBar_TextBlend5.Value = 70;
			this.trackBar_TextBlend5.Scroll += new System.EventHandler(this.trackBar_TextBlend5_Scroll);
			// 
			// radioButton_BottomRight
			// 
			this.radioButton_BottomRight.Location = new System.Drawing.Point(296, 280);
			this.radioButton_BottomRight.Name = "radioButton_BottomRight";
			this.radioButton_BottomRight.Size = new System.Drawing.Size(24, 24);
			this.radioButton_BottomRight.TabIndex = 23;
			this.radioButton_BottomRight.CheckedChanged += new System.EventHandler(this.radioButton_BottomRight_CheckedChanged);
			// 
			// radioButton_BottomMiddle
			// 
			this.radioButton_BottomMiddle.Location = new System.Drawing.Point(272, 280);
			this.radioButton_BottomMiddle.Name = "radioButton_BottomMiddle";
			this.radioButton_BottomMiddle.Size = new System.Drawing.Size(24, 24);
			this.radioButton_BottomMiddle.TabIndex = 22;
			this.radioButton_BottomMiddle.CheckedChanged += new System.EventHandler(this.radioButton_BottomMiddle_CheckedChanged);
			// 
			// radioButton_BottomLeft
			// 
			this.radioButton_BottomLeft.Location = new System.Drawing.Point(248, 280);
			this.radioButton_BottomLeft.Name = "radioButton_BottomLeft";
			this.radioButton_BottomLeft.Size = new System.Drawing.Size(24, 24);
			this.radioButton_BottomLeft.TabIndex = 21;
			this.radioButton_BottomLeft.CheckedChanged += new System.EventHandler(this.radioButton_BottomLeft_CheckedChanged);
			// 
			// radioButton_MiddleRight
			// 
			this.radioButton_MiddleRight.Location = new System.Drawing.Point(296, 256);
			this.radioButton_MiddleRight.Name = "radioButton_MiddleRight";
			this.radioButton_MiddleRight.Size = new System.Drawing.Size(24, 24);
			this.radioButton_MiddleRight.TabIndex = 20;
			this.radioButton_MiddleRight.CheckedChanged += new System.EventHandler(this.radioButton_MiddleRight_CheckedChanged);
			// 
			// radioButton_MiddleMiddle
			// 
			this.radioButton_MiddleMiddle.Location = new System.Drawing.Point(272, 256);
			this.radioButton_MiddleMiddle.Name = "radioButton_MiddleMiddle";
			this.radioButton_MiddleMiddle.Size = new System.Drawing.Size(24, 24);
			this.radioButton_MiddleMiddle.TabIndex = 19;
			this.radioButton_MiddleMiddle.CheckedChanged += new System.EventHandler(this.radioButton_MiddleMiddle_CheckedChanged);
			// 
			// radioButton_MiddleLeft
			// 
			this.radioButton_MiddleLeft.Location = new System.Drawing.Point(248, 256);
			this.radioButton_MiddleLeft.Name = "radioButton_MiddleLeft";
			this.radioButton_MiddleLeft.Size = new System.Drawing.Size(16, 24);
			this.radioButton_MiddleLeft.TabIndex = 18;
			this.radioButton_MiddleLeft.CheckedChanged += new System.EventHandler(this.radioButton_MiddleLeft_CheckedChanged);
			// 
			// radioButton_TopRight
			// 
			this.radioButton_TopRight.Location = new System.Drawing.Point(296, 232);
			this.radioButton_TopRight.Name = "radioButton_TopRight";
			this.radioButton_TopRight.Size = new System.Drawing.Size(24, 24);
			this.radioButton_TopRight.TabIndex = 17;
			this.radioButton_TopRight.CheckedChanged += new System.EventHandler(this.radioButton_TopRight_CheckedChanged);
			// 
			// radioButton_TopMiddle
			// 
			this.radioButton_TopMiddle.Location = new System.Drawing.Point(272, 232);
			this.radioButton_TopMiddle.Name = "radioButton_TopMiddle";
			this.radioButton_TopMiddle.Size = new System.Drawing.Size(16, 24);
			this.radioButton_TopMiddle.TabIndex = 16;
			this.radioButton_TopMiddle.CheckedChanged += new System.EventHandler(this.radioButton_TopMiddle_CheckedChanged);
			// 
			// radioButton_TopLeft
			// 
			this.radioButton_TopLeft.Checked = true;
			this.radioButton_TopLeft.Location = new System.Drawing.Point(248, 232);
			this.radioButton_TopLeft.Name = "radioButton_TopLeft";
			this.radioButton_TopLeft.Size = new System.Drawing.Size(16, 24);
			this.radioButton_TopLeft.TabIndex = 15;
			this.radioButton_TopLeft.TabStop = true;
			this.radioButton_TopLeft.CheckedChanged += new System.EventHandler(this.radioButton_TopLeft_CheckedChanged);
			// 
			// button_Font
			// 
			this.button_Font.Location = new System.Drawing.Point(8, 112);
			this.button_Font.Name = "button_Font";
			this.button_Font.TabIndex = 4;
			this.button_Font.Text = "Font...";
			this.button_Font.Click += new System.EventHandler(this.button_Font_Click);
			// 
			// textBox
			// 
			this.textBox.AcceptsReturn = true;
			this.textBox.AcceptsTab = true;
			this.textBox.Location = new System.Drawing.Point(8, 32);
			this.textBox.Multiline = true;
			this.textBox.Name = "textBox";
			this.textBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
			this.textBox.Size = new System.Drawing.Size(304, 72);
			this.textBox.TabIndex = 0;
			this.textBox.Text = "";
			this.textBox.WordWrap = false;
			this.textBox.TextChanged += new System.EventHandler(this.textBox_TextChanged);
			// 
			// panel_TextStartColor
			// 
			this.panel_TextStartColor.BackColor = System.Drawing.Color.Yellow;
			this.panel_TextStartColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel_TextStartColor.Location = new System.Drawing.Point(8, 432);
			this.panel_TextStartColor.Name = "panel_TextStartColor";
			this.panel_TextStartColor.Size = new System.Drawing.Size(24, 24);
			this.panel_TextStartColor.TabIndex = 33;
			this.panel_TextStartColor.BackColorChanged += new System.EventHandler(this.panel_TextStartColor_BackColorChanged);
			// 
			// comboBox_TextStartColor
			// 
			this.comboBox_TextStartColor.Location = new System.Drawing.Point(40, 432);
			this.comboBox_TextStartColor.Name = "comboBox_TextStartColor";
			this.comboBox_TextStartColor.Size = new System.Drawing.Size(121, 21);
			this.comboBox_TextStartColor.TabIndex = 34;
			this.comboBox_TextStartColor.Text = "comboBox1";
			this.comboBox_TextStartColor.SelectedIndexChanged += new System.EventHandler(this.comboBox_TextStartColor_SelectedIndexChanged);
			// 
			// button_TextStartColor
			// 
			this.button_TextStartColor.Location = new System.Drawing.Point(176, 432);
			this.button_TextStartColor.Name = "button_TextStartColor";
			this.button_TextStartColor.Size = new System.Drawing.Size(32, 24);
			this.button_TextStartColor.TabIndex = 35;
			this.button_TextStartColor.Text = "...";
			this.button_TextStartColor.Click += new System.EventHandler(this.button_TextStartColor_Click);
			// 
			// label_TextStartColor
			// 
			this.label_TextStartColor.Location = new System.Drawing.Point(8, 408);
			this.label_TextStartColor.Name = "label_TextStartColor";
			this.label_TextStartColor.Size = new System.Drawing.Size(200, 23);
			this.label_TextStartColor.TabIndex = 32;
			this.label_TextStartColor.Text = "Start Color: Yellow";
			// 
			// checkBox_TextEndColor
			// 
			this.checkBox_TextEndColor.Location = new System.Drawing.Point(8, 472);
			this.checkBox_TextEndColor.Name = "checkBox_TextEndColor";
			this.checkBox_TextEndColor.Size = new System.Drawing.Size(312, 24);
			this.checkBox_TextEndColor.TabIndex = 38;
			this.checkBox_TextEndColor.Text = "End Color: Black";
			this.checkBox_TextEndColor.CheckedChanged += new System.EventHandler(this.checkBox_TextEndColor_CheckedChanged);
			// 
			// panel_TextEndColor
			// 
			this.panel_TextEndColor.BackColor = System.Drawing.Color.Black;
			this.panel_TextEndColor.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel_TextEndColor.Enabled = false;
			this.panel_TextEndColor.Location = new System.Drawing.Point(8, 496);
			this.panel_TextEndColor.Name = "panel_TextEndColor";
			this.panel_TextEndColor.Size = new System.Drawing.Size(24, 24);
			this.panel_TextEndColor.TabIndex = 39;
			this.panel_TextEndColor.BackColorChanged += new System.EventHandler(this.panel_TextEndColor_BackColorChanged);
			// 
			// comboBox_TextEndColor
			// 
			this.comboBox_TextEndColor.Enabled = false;
			this.comboBox_TextEndColor.Location = new System.Drawing.Point(40, 496);
			this.comboBox_TextEndColor.Name = "comboBox_TextEndColor";
			this.comboBox_TextEndColor.Size = new System.Drawing.Size(121, 21);
			this.comboBox_TextEndColor.TabIndex = 40;
			this.comboBox_TextEndColor.Text = "comboBox1";
			this.comboBox_TextEndColor.SelectedIndexChanged += new System.EventHandler(this.comboBox_TextEndColor_SelectedIndexChanged);
			// 
			// button_TextEndColor
			// 
			this.button_TextEndColor.Enabled = false;
			this.button_TextEndColor.Location = new System.Drawing.Point(176, 496);
			this.button_TextEndColor.Name = "button_TextEndColor";
			this.button_TextEndColor.Size = new System.Drawing.Size(32, 24);
			this.button_TextEndColor.TabIndex = 41;
			this.button_TextEndColor.Text = "...";
			this.button_TextEndColor.Click += new System.EventHandler(this.button_TextEndColor_Click);
			// 
			// tabControl_Options
			// 
			this.tabControl_Options.Controls.Add(this.tabPage_Image);
			this.tabControl_Options.Controls.Add(this.tabPage_Blend);
			this.tabControl_Options.Controls.Add(this.tabPage_Text);
			this.tabControl_Options.Controls.Add(this.tabPage_TextBlend);
			this.tabControl_Options.Location = new System.Drawing.Point(8, 8);
			this.tabControl_Options.Name = "tabControl_Options";
			this.tabControl_Options.SelectedIndex = 0;
			this.tabControl_Options.Size = new System.Drawing.Size(344, 560);
			this.tabControl_Options.TabIndex = 0;
			// 
			// tabPage_Image
			// 
			this.tabPage_Image.Controls.Add(this.numericUpDown_CenterWidth);
			this.tabPage_Image.Controls.Add(this.numericUpDown_CenterHeight);
			this.tabPage_Image.Controls.Add(this.label_CenterWidth);
			this.tabPage_Image.Controls.Add(this.label_CenterHeight);
			this.tabPage_Image.Controls.Add(this.numericUpDown_Angle);
			this.tabPage_Image.Controls.Add(this.label_GradientMode);
			this.tabPage_Image.Controls.Add(this.label_StartColor);
			this.tabPage_Image.Controls.Add(this.comboBox_GradientMode);
			this.tabPage_Image.Controls.Add(this.label_Height);
			this.tabPage_Image.Controls.Add(this.numericUpDown_Height);
			this.tabPage_Image.Controls.Add(this.label_Width);
			this.tabPage_Image.Controls.Add(this.numericUpDown_Width);
			this.tabPage_Image.Controls.Add(this.label_Angle);
			this.tabPage_Image.Controls.Add(this.panel_StartColor);
			this.tabPage_Image.Controls.Add(this.comboBox_StartColor);
			this.tabPage_Image.Controls.Add(this.button_SelectStartColor);
			this.tabPage_Image.Controls.Add(this.panel_EndColor);
			this.tabPage_Image.Controls.Add(this.button_SelectEndColor);
			this.tabPage_Image.Controls.Add(this.comboBox_EndColor);
			this.tabPage_Image.Controls.Add(this.checkBox_EndColor);
			this.tabPage_Image.Location = new System.Drawing.Point(4, 22);
			this.tabPage_Image.Name = "tabPage_Image";
			this.tabPage_Image.Size = new System.Drawing.Size(336, 534);
			this.tabPage_Image.TabIndex = 0;
			this.tabPage_Image.Text = "Image";
			// 
			// numericUpDown_CenterWidth
			// 
			this.numericUpDown_CenterWidth.Location = new System.Drawing.Point(256, 144);
			this.numericUpDown_CenterWidth.Maximum = new System.Decimal(new int[] {
																					  200,
																					  0,
																					  0,
																					  0});
			this.numericUpDown_CenterWidth.Minimum = new System.Decimal(new int[] {
																					  100,
																					  0,
																					  0,
																					  -2147483648});
			this.numericUpDown_CenterWidth.Name = "numericUpDown_CenterWidth";
			this.numericUpDown_CenterWidth.Size = new System.Drawing.Size(64, 20);
			this.numericUpDown_CenterWidth.TabIndex = 11;
			this.numericUpDown_CenterWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_CenterWidth.Value = new System.Decimal(new int[] {
																					50,
																					0,
																					0,
																					0});
			this.numericUpDown_CenterWidth.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_CenterWidth_KeyUp);
			this.numericUpDown_CenterWidth.ValueChanged += new System.EventHandler(this.numericUpDown_CenterWidth_ValueChanged);
			// 
			// numericUpDown_CenterHeight
			// 
			this.numericUpDown_CenterHeight.Location = new System.Drawing.Point(120, 144);
			this.numericUpDown_CenterHeight.Maximum = new System.Decimal(new int[] {
																					   200,
																					   0,
																					   0,
																					   0});
			this.numericUpDown_CenterHeight.Minimum = new System.Decimal(new int[] {
																					   100,
																					   0,
																					   0,
																					   -2147483648});
			this.numericUpDown_CenterHeight.Name = "numericUpDown_CenterHeight";
			this.numericUpDown_CenterHeight.Size = new System.Drawing.Size(64, 20);
			this.numericUpDown_CenterHeight.TabIndex = 9;
			this.numericUpDown_CenterHeight.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_CenterHeight.Value = new System.Decimal(new int[] {
																					 50,
																					 0,
																					 0,
																					 0});
			this.numericUpDown_CenterHeight.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_CenterHeight_KeyUp);
			this.numericUpDown_CenterHeight.ValueChanged += new System.EventHandler(this.numericUpDown_CenterHeight_ValueChanged);
			// 
			// label_CenterWidth
			// 
			this.label_CenterWidth.Location = new System.Drawing.Point(200, 144);
			this.label_CenterWidth.Name = "label_CenterWidth";
			this.label_CenterWidth.Size = new System.Drawing.Size(64, 23);
			this.label_CenterWidth.TabIndex = 10;
			this.label_CenterWidth.Text = "Width %";
			// 
			// label_CenterHeight
			// 
			this.label_CenterHeight.Location = new System.Drawing.Point(16, 144);
			this.label_CenterHeight.Name = "label_CenterHeight";
			this.label_CenterHeight.Size = new System.Drawing.Size(104, 23);
			this.label_CenterHeight.TabIndex = 8;
			this.label_CenterHeight.Text = "Center Height %";
			// 
			// numericUpDown_Angle
			// 
			this.numericUpDown_Angle.Enabled = false;
			this.numericUpDown_Angle.Location = new System.Drawing.Point(120, 112);
			this.numericUpDown_Angle.Maximum = new System.Decimal(new int[] {
																				99999,
																				0,
																				0,
																				0});
			this.numericUpDown_Angle.Minimum = new System.Decimal(new int[] {
																				1,
																				0,
																				0,
																				-2147483648});
			this.numericUpDown_Angle.Name = "numericUpDown_Angle";
			this.numericUpDown_Angle.Size = new System.Drawing.Size(64, 20);
			this.numericUpDown_Angle.TabIndex = 7;
			this.numericUpDown_Angle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_Angle.Value = new System.Decimal(new int[] {
																			  25,
																			  0,
																			  0,
																			  0});
			this.numericUpDown_Angle.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_Angle_KeyUp);
			this.numericUpDown_Angle.ValueChanged += new System.EventHandler(this.numericUpDown_Angle_ValueChanged);
			// 
			// label_GradientMode
			// 
			this.label_GradientMode.Location = new System.Drawing.Point(16, 80);
			this.label_GradientMode.Name = "label_GradientMode";
			this.label_GradientMode.TabIndex = 4;
			this.label_GradientMode.Text = "Gradient Mode";
			// 
			// label_StartColor
			// 
			this.label_StartColor.Location = new System.Drawing.Point(16, 176);
			this.label_StartColor.Name = "label_StartColor";
			this.label_StartColor.Size = new System.Drawing.Size(264, 16);
			this.label_StartColor.TabIndex = 12;
			this.label_StartColor.Text = "Start Color: Black";
			// 
			// checkBox_EndColor
			// 
			this.checkBox_EndColor.Checked = true;
			this.checkBox_EndColor.CheckState = System.Windows.Forms.CheckState.Checked;
			this.checkBox_EndColor.Location = new System.Drawing.Point(16, 240);
			this.checkBox_EndColor.Name = "checkBox_EndColor";
			this.checkBox_EndColor.Size = new System.Drawing.Size(304, 24);
			this.checkBox_EndColor.TabIndex = 16;
			this.checkBox_EndColor.Text = "End Color: White";
			this.checkBox_EndColor.CheckedChanged += new System.EventHandler(this.checkBox_EndColor_CheckedChanged);
			// 
			// tabPage_Blend
			// 
			this.tabPage_Blend.Controls.Add(this.listBox_ImageBlendExamples);
			this.tabPage_Blend.Controls.Add(this.checkBox_ImageEnableBlend);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend6);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend8);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend4);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend3);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend9);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend2);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend7);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend1);
			this.tabPage_Blend.Controls.Add(this.trackBar_Blend5);
			this.tabPage_Blend.Controls.Add(this.label_100);
			this.tabPage_Blend.Controls.Add(this.label_000);
			this.tabPage_Blend.Controls.Add(this.label_ExampleImageBlends);
			this.tabPage_Blend.Location = new System.Drawing.Point(4, 22);
			this.tabPage_Blend.Name = "tabPage_Blend";
			this.tabPage_Blend.Size = new System.Drawing.Size(336, 534);
			this.tabPage_Blend.TabIndex = 1;
			this.tabPage_Blend.Text = "Blend";
			// 
			// listBox_ImageBlendExamples
			// 
			this.listBox_ImageBlendExamples.Items.AddRange(new object[] {
																			"Default",
																			"Bell - Thin Left",
																			"Bell - Thick Left",
																			"Bell - Thin Center",
																			"Bell - Thick Center",
																			"Bell - Thin Right",
																			"Bell - Thick Right",
																			"Linear",
																			"Sine 1",
																			"Sine 2",
																			"Sine 3",
																			"Sine 4",
																			"Triangle - Peek Left",
																			"Triangle - Peek Center",
																			"Triangle - Peek Right"});
			this.listBox_ImageBlendExamples.Location = new System.Drawing.Point(16, 264);
			this.listBox_ImageBlendExamples.Name = "listBox_ImageBlendExamples";
			this.listBox_ImageBlendExamples.Size = new System.Drawing.Size(296, 199);
			this.listBox_ImageBlendExamples.TabIndex = 12;
			this.listBox_ImageBlendExamples.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox_ImageBlendExamples_KeyUp);
			this.listBox_ImageBlendExamples.MouseUp += new System.Windows.Forms.MouseEventHandler(this.listBox_ImageBlendExamples_MouseUp);
			// 
			// checkBox_ImageEnableBlend
			// 
			this.checkBox_ImageEnableBlend.Location = new System.Drawing.Point(16, 16);
			this.checkBox_ImageEnableBlend.Name = "checkBox_ImageEnableBlend";
			this.checkBox_ImageEnableBlend.TabIndex = 0;
			this.checkBox_ImageEnableBlend.Text = "Enable Blend";
			this.checkBox_ImageEnableBlend.CheckedChanged += new System.EventHandler(this.checkBox_ImageEnableBlend_CheckedChanged);
			// 
			// label_ExampleImageBlends
			// 
			this.label_ExampleImageBlends.Location = new System.Drawing.Point(16, 240);
			this.label_ExampleImageBlends.Name = "label_ExampleImageBlends";
			this.label_ExampleImageBlends.Size = new System.Drawing.Size(168, 23);
			this.label_ExampleImageBlends.TabIndex = 13;
			this.label_ExampleImageBlends.Text = "Example Image Blends";
			// 
			// tabPage_Text
			// 
			this.tabPage_Text.Controls.Add(this.comboBox_AntiAlias);
			this.tabPage_Text.Controls.Add(this.label_AntiAlias);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextRotationAngle);
			this.tabPage_Text.Controls.Add(this.label_TextRotationAngle);
			this.tabPage_Text.Controls.Add(this.button_TextRight);
			this.tabPage_Text.Controls.Add(this.button_TextCenter);
			this.tabPage_Text.Controls.Add(this.button_TextLeft);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextEndAlpha);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextStartAlpha);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextCenterWidth);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextCenterHeight);
			this.tabPage_Text.Controls.Add(this.label_TextCenterWidth);
			this.tabPage_Text.Controls.Add(this.label_TextCenterHeight);
			this.tabPage_Text.Controls.Add(this.label_TextGradientMode);
			this.tabPage_Text.Controls.Add(this.numericUpDown_TextAngle);
			this.tabPage_Text.Controls.Add(this.comboBox_TextGradientMode);
			this.tabPage_Text.Controls.Add(this.label_FontExample);
			this.tabPage_Text.Controls.Add(this.numericUpDown_BorderWidth);
			this.tabPage_Text.Controls.Add(this.numericUpDown_BorderHeight);
			this.tabPage_Text.Controls.Add(this.label_BorderWidth);
			this.tabPage_Text.Controls.Add(this.label_BorderHeight);
			this.tabPage_Text.Controls.Add(this.textBox);
			this.tabPage_Text.Controls.Add(this.radioButton_BottomRight);
			this.tabPage_Text.Controls.Add(this.radioButton_BottomMiddle);
			this.tabPage_Text.Controls.Add(this.radioButton_BottomLeft);
			this.tabPage_Text.Controls.Add(this.radioButton_MiddleRight);
			this.tabPage_Text.Controls.Add(this.radioButton_MiddleMiddle);
			this.tabPage_Text.Controls.Add(this.radioButton_MiddleLeft);
			this.tabPage_Text.Controls.Add(this.radioButton_TopRight);
			this.tabPage_Text.Controls.Add(this.button_TextEndColor);
			this.tabPage_Text.Controls.Add(this.checkBox_TextEndColor);
			this.tabPage_Text.Controls.Add(this.button_TextStartColor);
			this.tabPage_Text.Controls.Add(this.panel_TextStartColor);
			this.tabPage_Text.Controls.Add(this.comboBox_TextEndColor);
			this.tabPage_Text.Controls.Add(this.panel_TextEndColor);
			this.tabPage_Text.Controls.Add(this.comboBox_TextStartColor);
			this.tabPage_Text.Controls.Add(this.radioButton_TopMiddle);
			this.tabPage_Text.Controls.Add(this.radioButton_TopLeft);
			this.tabPage_Text.Controls.Add(this.button_Font);
			this.tabPage_Text.Controls.Add(this.label_TextStartColor);
			this.tabPage_Text.Controls.Add(this.label_TextAlign);
			this.tabPage_Text.Controls.Add(this.label_TextStartAlpha);
			this.tabPage_Text.Controls.Add(this.label_TextEndAlpha);
			this.tabPage_Text.Controls.Add(this.label_TextAngle);
			this.tabPage_Text.Location = new System.Drawing.Point(4, 22);
			this.tabPage_Text.Name = "tabPage_Text";
			this.tabPage_Text.Size = new System.Drawing.Size(336, 534);
			this.tabPage_Text.TabIndex = 2;
			this.tabPage_Text.Text = "Text";
			// 
			// comboBox_AntiAlias
			// 
			this.comboBox_AntiAlias.Items.AddRange(new object[] {
																	"Anti-Alias",
																	"Anti-Alias Grid Fit",
																	"Clear Type Grid Fit",
																	"Single Bit Per Pixel",
																	"Single Bit Per Pixel Grid Fit",
																	"System Default"});
			this.comboBox_AntiAlias.Location = new System.Drawing.Point(112, 184);
			this.comboBox_AntiAlias.Name = "comboBox_AntiAlias";
			this.comboBox_AntiAlias.Size = new System.Drawing.Size(152, 21);
			this.comboBox_AntiAlias.TabIndex = 7;
			this.comboBox_AntiAlias.Text = "comboBox1";
			this.comboBox_AntiAlias.SelectedIndexChanged += new System.EventHandler(this.comboBox_AntiAlias_SelectedIndexChanged);
			// 
			// label_AntiAlias
			// 
			this.label_AntiAlias.Location = new System.Drawing.Point(8, 184);
			this.label_AntiAlias.Name = "label_AntiAlias";
			this.label_AntiAlias.TabIndex = 6;
			this.label_AntiAlias.Text = "Anti-Alias Mode";
			// 
			// numericUpDown_TextRotationAngle
			// 
			this.numericUpDown_TextRotationAngle.Location = new System.Drawing.Point(112, 280);
			this.numericUpDown_TextRotationAngle.Maximum = new System.Decimal(new int[] {
																							361,
																							0,
																							0,
																							0});
			this.numericUpDown_TextRotationAngle.Minimum = new System.Decimal(new int[] {
																							1,
																							0,
																							0,
																							-2147483648});
			this.numericUpDown_TextRotationAngle.Name = "numericUpDown_TextRotationAngle";
			this.numericUpDown_TextRotationAngle.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextRotationAngle.TabIndex = 13;
			this.numericUpDown_TextRotationAngle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextRotationAngle.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextRotationAngle_KeyUp);
			this.numericUpDown_TextRotationAngle.ValueChanged += new System.EventHandler(this.numericUpDown_TextRotationAngle_ValueChanged);
			// 
			// label_TextRotationAngle
			// 
			this.label_TextRotationAngle.Location = new System.Drawing.Point(8, 272);
			this.label_TextRotationAngle.Name = "label_TextRotationAngle";
			this.label_TextRotationAngle.Size = new System.Drawing.Size(112, 32);
			this.label_TextRotationAngle.TabIndex = 12;
			this.label_TextRotationAngle.Text = "Text Rotation Angle (Degrees)";
			this.label_TextRotationAngle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// button_TextRight
			// 
			this.button_TextRight.Image = ((System.Drawing.Image)(resources.GetObject("button_TextRight.Image")));
			this.button_TextRight.Location = new System.Drawing.Point(288, 8);
			this.button_TextRight.Name = "button_TextRight";
			this.button_TextRight.Size = new System.Drawing.Size(24, 23);
			this.button_TextRight.TabIndex = 3;
			this.button_TextRight.Click += new System.EventHandler(this.button_TextRight_Click);
			// 
			// button_TextCenter
			// 
			this.button_TextCenter.Image = ((System.Drawing.Image)(resources.GetObject("button_TextCenter.Image")));
			this.button_TextCenter.Location = new System.Drawing.Point(264, 8);
			this.button_TextCenter.Name = "button_TextCenter";
			this.button_TextCenter.Size = new System.Drawing.Size(24, 23);
			this.button_TextCenter.TabIndex = 2;
			this.button_TextCenter.Click += new System.EventHandler(this.button_TextCenter_Click);
			// 
			// button_TextLeft
			// 
			this.button_TextLeft.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
			this.button_TextLeft.Image = ((System.Drawing.Image)(resources.GetObject("button_TextLeft.Image")));
			this.button_TextLeft.Location = new System.Drawing.Point(240, 8);
			this.button_TextLeft.Name = "button_TextLeft";
			this.button_TextLeft.Size = new System.Drawing.Size(24, 23);
			this.button_TextLeft.TabIndex = 1;
			this.button_TextLeft.Click += new System.EventHandler(this.button_TextLeft_Click);
			// 
			// numericUpDown_TextEndAlpha
			// 
			this.numericUpDown_TextEndAlpha.Enabled = false;
			this.numericUpDown_TextEndAlpha.Location = new System.Drawing.Point(264, 496);
			this.numericUpDown_TextEndAlpha.Maximum = new System.Decimal(new int[] {
																					   255,
																					   0,
																					   0,
																					   0});
			this.numericUpDown_TextEndAlpha.Name = "numericUpDown_TextEndAlpha";
			this.numericUpDown_TextEndAlpha.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextEndAlpha.TabIndex = 43;
			this.numericUpDown_TextEndAlpha.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextEndAlpha.Value = new System.Decimal(new int[] {
																					 255,
																					 0,
																					 0,
																					 0});
			this.numericUpDown_TextEndAlpha.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextEndAlpha_KeyUp);
			this.numericUpDown_TextEndAlpha.ValueChanged += new System.EventHandler(this.numericUpDown_TextEndAlpha_ValueChanged);
			// 
			// numericUpDown_TextStartAlpha
			// 
			this.numericUpDown_TextStartAlpha.Location = new System.Drawing.Point(264, 432);
			this.numericUpDown_TextStartAlpha.Maximum = new System.Decimal(new int[] {
																						 255,
																						 0,
																						 0,
																						 0});
			this.numericUpDown_TextStartAlpha.Name = "numericUpDown_TextStartAlpha";
			this.numericUpDown_TextStartAlpha.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextStartAlpha.TabIndex = 37;
			this.numericUpDown_TextStartAlpha.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextStartAlpha.Value = new System.Decimal(new int[] {
																					   255,
																					   0,
																					   0,
																					   0});
			this.numericUpDown_TextStartAlpha.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextStartAlpha_KeyUp);
			this.numericUpDown_TextStartAlpha.ValueChanged += new System.EventHandler(this.numericUpDown_TextStartAlpha_ValueChanged);
			// 
			// numericUpDown_TextCenterWidth
			// 
			this.numericUpDown_TextCenterWidth.Location = new System.Drawing.Point(264, 376);
			this.numericUpDown_TextCenterWidth.Maximum = new System.Decimal(new int[] {
																						  200,
																						  0,
																						  0,
																						  0});
			this.numericUpDown_TextCenterWidth.Minimum = new System.Decimal(new int[] {
																						  100,
																						  0,
																						  0,
																						  -2147483648});
			this.numericUpDown_TextCenterWidth.Name = "numericUpDown_TextCenterWidth";
			this.numericUpDown_TextCenterWidth.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextCenterWidth.TabIndex = 31;
			this.numericUpDown_TextCenterWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextCenterWidth.Value = new System.Decimal(new int[] {
																						50,
																						0,
																						0,
																						0});
			this.numericUpDown_TextCenterWidth.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextCenterWidth_KeyUp);
			this.numericUpDown_TextCenterWidth.ValueChanged += new System.EventHandler(this.numericUpDown_TextCenterWidth_ValueChanged);
			// 
			// numericUpDown_TextCenterHeight
			// 
			this.numericUpDown_TextCenterHeight.Location = new System.Drawing.Point(112, 376);
			this.numericUpDown_TextCenterHeight.Maximum = new System.Decimal(new int[] {
																						   200,
																						   0,
																						   0,
																						   0});
			this.numericUpDown_TextCenterHeight.Minimum = new System.Decimal(new int[] {
																						   100,
																						   0,
																						   0,
																						   -2147483648});
			this.numericUpDown_TextCenterHeight.Name = "numericUpDown_TextCenterHeight";
			this.numericUpDown_TextCenterHeight.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextCenterHeight.TabIndex = 29;
			this.numericUpDown_TextCenterHeight.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextCenterHeight.Value = new System.Decimal(new int[] {
																						 50,
																						 0,
																						 0,
																						 0});
			this.numericUpDown_TextCenterHeight.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextCenterHeight_KeyUp);
			this.numericUpDown_TextCenterHeight.ValueChanged += new System.EventHandler(this.numericUpDown_TextCenterHeight_ValueChanged);
			// 
			// label_TextCenterWidth
			// 
			this.label_TextCenterWidth.Location = new System.Drawing.Point(208, 376);
			this.label_TextCenterWidth.Name = "label_TextCenterWidth";
			this.label_TextCenterWidth.Size = new System.Drawing.Size(64, 23);
			this.label_TextCenterWidth.TabIndex = 30;
			this.label_TextCenterWidth.Text = "Width %";
			// 
			// label_TextCenterHeight
			// 
			this.label_TextCenterHeight.Location = new System.Drawing.Point(8, 376);
			this.label_TextCenterHeight.Name = "label_TextCenterHeight";
			this.label_TextCenterHeight.Size = new System.Drawing.Size(104, 23);
			this.label_TextCenterHeight.TabIndex = 28;
			this.label_TextCenterHeight.Text = "Center Height %";
			// 
			// label_TextGradientMode
			// 
			this.label_TextGradientMode.Location = new System.Drawing.Point(8, 312);
			this.label_TextGradientMode.Name = "label_TextGradientMode";
			this.label_TextGradientMode.TabIndex = 24;
			this.label_TextGradientMode.Text = "Gradient Mode";
			// 
			// numericUpDown_TextAngle
			// 
			this.numericUpDown_TextAngle.Enabled = false;
			this.numericUpDown_TextAngle.Location = new System.Drawing.Point(112, 344);
			this.numericUpDown_TextAngle.Maximum = new System.Decimal(new int[] {
																					361,
																					0,
																					0,
																					0});
			this.numericUpDown_TextAngle.Minimum = new System.Decimal(new int[] {
																					1,
																					0,
																					0,
																					-2147483648});
			this.numericUpDown_TextAngle.Name = "numericUpDown_TextAngle";
			this.numericUpDown_TextAngle.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_TextAngle.TabIndex = 27;
			this.numericUpDown_TextAngle.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_TextAngle.Value = new System.Decimal(new int[] {
																				  25,
																				  0,
																				  0,
																				  0});
			this.numericUpDown_TextAngle.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_TextAngle_KeyUp);
			this.numericUpDown_TextAngle.ValueChanged += new System.EventHandler(this.numericUpDown_TextAngle_ValueChanged);
			// 
			// comboBox_TextGradientMode
			// 
			this.comboBox_TextGradientMode.Items.AddRange(new object[] {
																		   "Horizontal",
																		   "Vertical",
																		   "Backward Diagonal",
																		   "Forward Diagonal",
																		   "Angle",
																		   "Center"});
			this.comboBox_TextGradientMode.Location = new System.Drawing.Point(112, 312);
			this.comboBox_TextGradientMode.Name = "comboBox_TextGradientMode";
			this.comboBox_TextGradientMode.Size = new System.Drawing.Size(120, 21);
			this.comboBox_TextGradientMode.TabIndex = 25;
			this.comboBox_TextGradientMode.SelectedIndexChanged += new System.EventHandler(this.comboBox_TextGradientMode_SelectedIndexChanged);
			// 
			// label_FontExample
			// 
			this.label_FontExample.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label_FontExample.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.label_FontExample.Location = new System.Drawing.Point(112, 112);
			this.label_FontExample.Name = "label_FontExample";
			this.label_FontExample.Size = new System.Drawing.Size(200, 64);
			this.label_FontExample.TabIndex = 5;
			this.label_FontExample.Text = "Example";
			this.label_FontExample.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// numericUpDown_BorderWidth
			// 
			this.numericUpDown_BorderWidth.Location = new System.Drawing.Point(112, 248);
			this.numericUpDown_BorderWidth.Maximum = new System.Decimal(new int[] {
																					  1000,
																					  0,
																					  0,
																					  0});
			this.numericUpDown_BorderWidth.Minimum = new System.Decimal(new int[] {
																					  1000,
																					  0,
																					  0,
																					  -2147483648});
			this.numericUpDown_BorderWidth.Name = "numericUpDown_BorderWidth";
			this.numericUpDown_BorderWidth.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_BorderWidth.TabIndex = 11;
			this.numericUpDown_BorderWidth.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_BorderWidth.Value = new System.Decimal(new int[] {
																					5,
																					0,
																					0,
																					0});
			this.numericUpDown_BorderWidth.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_BorderWidth_KeyUp);
			this.numericUpDown_BorderWidth.ValueChanged += new System.EventHandler(this.numericUpDown_BorderWidth_ValueChanged);
			// 
			// numericUpDown_BorderHeight
			// 
			this.numericUpDown_BorderHeight.Location = new System.Drawing.Point(112, 216);
			this.numericUpDown_BorderHeight.Maximum = new System.Decimal(new int[] {
																					   1000,
																					   0,
																					   0,
																					   0});
			this.numericUpDown_BorderHeight.Minimum = new System.Decimal(new int[] {
																					   1000,
																					   0,
																					   0,
																					   -2147483648});
			this.numericUpDown_BorderHeight.Name = "numericUpDown_BorderHeight";
			this.numericUpDown_BorderHeight.Size = new System.Drawing.Size(56, 20);
			this.numericUpDown_BorderHeight.TabIndex = 9;
			this.numericUpDown_BorderHeight.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
			this.numericUpDown_BorderHeight.Value = new System.Decimal(new int[] {
																					 5,
																					 0,
																					 0,
																					 0});
			this.numericUpDown_BorderHeight.KeyUp += new System.Windows.Forms.KeyEventHandler(this.numericUpDown_BorderHeight_KeyUp);
			this.numericUpDown_BorderHeight.ValueChanged += new System.EventHandler(this.numericUpDown_BorderHeight_ValueChanged);
			// 
			// label_BorderWidth
			// 
			this.label_BorderWidth.Location = new System.Drawing.Point(8, 248);
			this.label_BorderWidth.Name = "label_BorderWidth";
			this.label_BorderWidth.Size = new System.Drawing.Size(72, 23);
			this.label_BorderWidth.TabIndex = 10;
			this.label_BorderWidth.Text = "Border Width";
			// 
			// label_BorderHeight
			// 
			this.label_BorderHeight.Location = new System.Drawing.Point(8, 216);
			this.label_BorderHeight.Name = "label_BorderHeight";
			this.label_BorderHeight.Size = new System.Drawing.Size(80, 23);
			this.label_BorderHeight.TabIndex = 8;
			this.label_BorderHeight.Text = "Border Height";
			// 
			// label_TextAlign
			// 
			this.label_TextAlign.Location = new System.Drawing.Point(248, 216);
			this.label_TextAlign.Name = "label_TextAlign";
			this.label_TextAlign.Size = new System.Drawing.Size(64, 16);
			this.label_TextAlign.TabIndex = 14;
			this.label_TextAlign.Text = "Align";
			// 
			// label_TextStartAlpha
			// 
			this.label_TextStartAlpha.Location = new System.Drawing.Point(224, 432);
			this.label_TextStartAlpha.Name = "label_TextStartAlpha";
			this.label_TextStartAlpha.Size = new System.Drawing.Size(64, 23);
			this.label_TextStartAlpha.TabIndex = 36;
			this.label_TextStartAlpha.Text = "Alpha";
			// 
			// label_TextEndAlpha
			// 
			this.label_TextEndAlpha.Location = new System.Drawing.Point(224, 496);
			this.label_TextEndAlpha.Name = "label_TextEndAlpha";
			this.label_TextEndAlpha.Size = new System.Drawing.Size(64, 23);
			this.label_TextEndAlpha.TabIndex = 42;
			this.label_TextEndAlpha.Text = "Alpha";
			// 
			// label_TextAngle
			// 
			this.label_TextAngle.Enabled = false;
			this.label_TextAngle.Location = new System.Drawing.Point(8, 336);
			this.label_TextAngle.Name = "label_TextAngle";
			this.label_TextAngle.Size = new System.Drawing.Size(96, 40);
			this.label_TextAngle.TabIndex = 26;
			this.label_TextAngle.Text = "Gradient Angle (Degrees)";
			this.label_TextAngle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// tabPage_TextBlend
			// 
			this.tabPage_TextBlend.Controls.Add(this.listBox_TextBlendExamples);
			this.tabPage_TextBlend.Controls.Add(this.label_ExampleTextBlends);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend6);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend8);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend4);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend3);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend9);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend2);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend7);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend1);
			this.tabPage_TextBlend.Controls.Add(this.trackBar_TextBlend5);
			this.tabPage_TextBlend.Controls.Add(this.checkBox_EnableTextBlend);
			this.tabPage_TextBlend.Controls.Add(this.label_Text100);
			this.tabPage_TextBlend.Controls.Add(this.label_Text000);
			this.tabPage_TextBlend.Location = new System.Drawing.Point(4, 22);
			this.tabPage_TextBlend.Name = "tabPage_TextBlend";
			this.tabPage_TextBlend.Size = new System.Drawing.Size(336, 534);
			this.tabPage_TextBlend.TabIndex = 3;
			this.tabPage_TextBlend.Text = "Text Blend";
			// 
			// checkBox_EnableTextBlend
			// 
			this.checkBox_EnableTextBlend.Location = new System.Drawing.Point(16, 16);
			this.checkBox_EnableTextBlend.Name = "checkBox_EnableTextBlend";
			this.checkBox_EnableTextBlend.TabIndex = 0;
			this.checkBox_EnableTextBlend.Text = "Enable Blend";
			this.checkBox_EnableTextBlend.CheckedChanged += new System.EventHandler(this.checkBox_EnableTextBlend_CheckedChanged);
			// 
			// label_Text100
			// 
			this.label_Text100.Location = new System.Drawing.Point(8, 48);
			this.label_Text100.Name = "label_Text100";
			this.label_Text100.Size = new System.Drawing.Size(100, 16);
			this.label_Text100.TabIndex = 1;
			this.label_Text100.Text = "100";
			// 
			// label_Text000
			// 
			this.label_Text000.Location = new System.Drawing.Point(16, 136);
			this.label_Text000.Name = "label_Text000";
			this.label_Text000.Size = new System.Drawing.Size(32, 23);
			this.label_Text000.TabIndex = 2;
			this.label_Text000.Text = "0";
			// 
			// panel_ExampleBackground
			// 
			this.panel_ExampleBackground.BackColor = System.Drawing.Color.White;
			this.panel_ExampleBackground.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.panel_ExampleBackground.Controls.Add(this.panel_Gradient);
			this.panel_ExampleBackground.Location = new System.Drawing.Point(8, 32);
			this.panel_ExampleBackground.Name = "panel_ExampleBackground";
			this.panel_ExampleBackground.Size = new System.Drawing.Size(420, 220);
			this.panel_ExampleBackground.TabIndex = 2;
			// 
			// panel_ScrollPanel
			// 
			this.panel_ScrollPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.panel_ScrollPanel.AutoScroll = true;
			this.panel_ScrollPanel.Controls.Add(this.label_Example);
			this.panel_ScrollPanel.Controls.Add(this.panel_ExampleBackground);
			this.panel_ScrollPanel.Location = new System.Drawing.Point(352, 0);
			this.panel_ScrollPanel.Name = "panel_ScrollPanel";
			this.panel_ScrollPanel.Size = new System.Drawing.Size(440, 568);
			this.panel_ScrollPanel.TabIndex = 3;
			// 
			// listBox_TextBlendExamples
			// 
			this.listBox_TextBlendExamples.Items.AddRange(new object[] {
																		   "Default",
																		   "Bell - Thin Left",
																		   "Bell - Thick Left",
																		   "Bell - Thin Center",
																		   "Bell - Thick Center",
																		   "Bell - Thin Right",
																		   "Bell - Thick Right",
																		   "Linear",
																		   "Sine 1",
																		   "Sine 2",
																		   "Sine 3",
																		   "Sine 4",
																		   "Triangle - Peek Left",
																		   "Triangle - Peek Center",
																		   "Triangle - Peek Right"});
			this.listBox_TextBlendExamples.Location = new System.Drawing.Point(16, 264);
			this.listBox_TextBlendExamples.Name = "listBox_TextBlendExamples";
			this.listBox_TextBlendExamples.Size = new System.Drawing.Size(296, 199);
			this.listBox_TextBlendExamples.TabIndex = 14;
			this.listBox_TextBlendExamples.KeyUp += new System.Windows.Forms.KeyEventHandler(this.listBox_TextBlendExamples_KeyUp);
			this.listBox_TextBlendExamples.MouseUp += new System.Windows.Forms.MouseEventHandler(this.listBox_TextBlendExamples_MouseUp);
			// 
			// label_ExampleTextBlends
			// 
			this.label_ExampleTextBlends.Location = new System.Drawing.Point(16, 240);
			this.label_ExampleTextBlends.Name = "label_ExampleTextBlends";
			this.label_ExampleTextBlends.Size = new System.Drawing.Size(168, 23);
			this.label_ExampleTextBlends.TabIndex = 15;
			this.label_ExampleTextBlends.Text = "Example Text Blends";
			// 
			// Form_Main
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(792, 569);
			this.Controls.Add(this.panel_ScrollPanel);
			this.Controls.Add(this.tabControl_Options);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Menu = this.mainMenu_Main;
			this.Name = "Form_Main";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "GradientMaker";
			this.Closing += new System.ComponentModel.CancelEventHandler(this.Form_Main_Closing);
			this.Load += new System.EventHandler(this.Form_Main_Load);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Width)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Height)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend7)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend8)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend9)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend6)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend5)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend4)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend3)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_Blend2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend6)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend8)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend4)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend3)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend9)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend2)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend7)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend1)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.trackBar_TextBlend5)).EndInit();
			this.tabControl_Options.ResumeLayout(false);
			this.tabPage_Image.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_CenterWidth)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_CenterHeight)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_Angle)).EndInit();
			this.tabPage_Blend.ResumeLayout(false);
			this.tabPage_Text.ResumeLayout(false);
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextRotationAngle)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextEndAlpha)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextStartAlpha)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextCenterWidth)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextCenterHeight)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_TextAngle)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BorderWidth)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BorderHeight)).EndInit();
			this.tabPage_TextBlend.ResumeLayout(false);
			this.panel_ExampleBackground.ResumeLayout(false);
			this.panel_ScrollPanel.ResumeLayout(false);
			this.ResumeLayout(false);

		}
		#endregion

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

		#region Form Events...

		private void Form_Main_Load(object sender, System.EventArgs e)
		{
			numericUpDown_Height.Value = panel_Gradient.Height;
			numericUpDown_Width.Value = panel_Gradient.Width;
			comboBox_GradientMode.SelectedIndex = 0; // Horizontal
			// Anti-Alias added to Version 1.2
			comboBox_AntiAlias.SelectedIndex = 0; //AntiAlias
			comboBox_TextGradientMode.SelectedIndex = 0; // Horizontal

			for (KnownColor enumValue = KnownColor.AliceBlue; enumValue <= KnownColor.YellowGreen; enumValue++)
			{
				comboBox_StartColor.Items.Add(Color.FromKnownColor(enumValue).Name);
				if (Color.FromKnownColor(enumValue).Name == "Black")
				{
					comboBox_StartColor.SelectedIndex = comboBox_StartColor.Items.Count - 1;
				}
				comboBox_EndColor.Items.Add(Color.FromKnownColor(enumValue).Name);
				if (Color.FromKnownColor(enumValue).Name == "White")
				{
					comboBox_EndColor.SelectedIndex = comboBox_EndColor.Items.Count - 1;
				}
				comboBox_TextStartColor.Items.Add(Color.FromKnownColor(enumValue).Name);
				if (Color.FromKnownColor(enumValue).Name == "Yellow")
				{
					comboBox_TextStartColor.SelectedIndex = comboBox_TextStartColor.Items.Count - 1;
				}
				comboBox_TextEndColor.Items.Add(Color.FromKnownColor(enumValue).Name);
				if (Color.FromKnownColor(enumValue).Name == "Black")
				{
					comboBox_TextEndColor.SelectedIndex = comboBox_TextEndColor.Items.Count - 1;
				}
			}
			IsImageChanged = false;
		}

		private void panel_Gradient_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
		{
			bool temp = IsImageChanged;
			DrawGradient();
			IsImageChanged = temp;
		}
		
		/// <summary>
		/// True if the image has not been saved after the last save or workspace file load
		/// </summary>
		private bool IsImageChanged = false;

		private void Form_Main_Closing(object sender, System.ComponentModel.CancelEventArgs e)
		{
			if (IsImageChanged)
			{
				if (MessageBox.Show("Changes have not been saved. \r\n\r\nDo you still wish to close GradientMaker?", 
					this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == 
					DialogResult.No)
				{
					e.Cancel = true;
				}
			}
		}

		#endregion

		#region Menu...

		#region File Menu...

		/// <summary>
		/// Full file path to the last saved image file
		/// </summary>
		private string SavedImageFile = "";

		private void menuItem_FileSave_Click(object sender, System.EventArgs e)
		{
			// Display an SaveFileDialog so the user can save the Image.
			SaveFileDialog saveFileDialog1 = new SaveFileDialog();
			saveFileDialog1.Filter = 
				"Joint Photographic Experts Group JPEG (*.jpg)|*.jpg|Bitmap Image (*.bmp)|*.bmp|Graphics Interchange Format (*.gif)|*.gif|Tag Image File Format TIFF (*.tif)|*.tif|W3C Portable Network Graphics (*.png)|*.png";
			saveFileDialog1.AddExtension = true;
			saveFileDialog1.Title = "Save an Image File";
			if (SavedImageFile != "")
			{
				saveFileDialog1.FileName = SavedImageFile;
			}
			DialogResult result = saveFileDialog1.ShowDialog();

			// If the file name is not an empty string open it for saving.
			if(result == DialogResult.OK & saveFileDialog1.FileName != "")
			{
				try
				{
					// Save the Image via a FileStream created by the OpenFile method.
					System.IO.FileStream fs = 
						(System.IO.FileStream)saveFileDialog1.OpenFile();
					// Create a bitmap image and then draw our gradient on it
					Bitmap bitmap;
					bitmap = new Bitmap(panel_Gradient.Width, panel_Gradient.Height);
					Graphics graphics = Graphics.FromImage(bitmap);
					DrawGradient(graphics);
					// Save the Image in the appropriate ImageFormat based upon the
					// File type selected in the dialog box.
					// NOTE that the FilterIndex property is one-based.
					switch(saveFileDialog1.FilterIndex)
					{
						case 1 :
							bitmap.Save(fs, System.Drawing.Imaging.ImageFormat.Jpeg);
							break;
						case 2 :
							bitmap.Save(fs, System.Drawing.Imaging.ImageFormat.Bmp);
							break;
						case 3 :
							bitmap.Save(fs,	System.Drawing.Imaging.ImageFormat.Gif);
							break;
						case 4 :
							bitmap.Save(fs,	System.Drawing.Imaging.ImageFormat.Tiff);
							break;
						case 5 :
							bitmap.Save(fs,	System.Drawing.Imaging.ImageFormat.Png);
							break;
						default:
							MessageBox.Show("File type not supported.", saveFileDialog1.Title, MessageBoxButtons.OK, MessageBoxIcon.Information);
							break;
					}
					graphics.Dispose();
					bitmap.Dispose();
					fs.Close();
					SavedImageFile = saveFileDialog1.FileName;
					IsImageChanged = false;
				}
				catch (Exception ex)
				{
					// Save image exception added to Version 1.2
					MessageBox.Show("Could not save image file.\r\n\r\n\t" + saveFileDialog1.FileName + "\r\n\r\n" + ex.Message,
						saveFileDialog1.Title, MessageBoxButtons.OK, MessageBoxIcon.Information);
				}
			}

		}

		/// <summary>
		/// Full file path to the last saved workspace file
		/// </summary>
		private string SaveWorkspaceFile = "";

		private void menuItem_FileOpenWorkspace_Click(object sender, System.EventArgs e)
		{
			// Display an SaveFileDialog so the user can save the workspace.
			OpenFileDialog openFileDialog1 = new OpenFileDialog();
			openFileDialog1.Filter = "Xml (*.xml)|*.xml|All Files (*.*)|*.*";
			openFileDialog1.Title = "Open Workspace";
			if (SaveWorkspaceFile != "")
			{
				openFileDialog1.FileName = SaveWorkspaceFile;
			}
			DialogResult result = openFileDialog1.ShowDialog();

			// If the file name is not an empty string then save settings.
			if(result == DialogResult.OK & openFileDialog1.FileName != "")
			{
				UserSettings settings = new UserSettings(openFileDialog1.FileName);
				try
				{
					settings.LoadSoapData();

					numericUpDown_Height.Value = settings.Configuration.ImageOptions.Height;
					numericUpDown_Width.Value = settings.Configuration.ImageOptions.Width;
					comboBox_GradientMode.SelectedIndex = settings.Configuration.ImageOptions.GradientMode;
					numericUpDown_Angle.Value = settings.Configuration.ImageOptions.Angle;
					numericUpDown_CenterHeight.Value = settings.Configuration.ImageOptions.CenterHeight;
					numericUpDown_CenterWidth.Value = settings.Configuration.ImageOptions.CenterWidth;
					SetStartColor(settings.Configuration.ImageOptions.StartColor);
					checkBox_EndColor.Checked = settings.Configuration.ImageOptions.EndColorEnabled;
					SetEndColor(settings.Configuration.ImageOptions.EndColor);

					checkBox_ImageEnableBlend.Checked = settings.Configuration.ImageBlend.Enabled;
					trackBar_Blend1.Value = settings.Configuration.ImageBlend.Blend[0];
					trackBar_Blend2.Value = settings.Configuration.ImageBlend.Blend[1];
					trackBar_Blend3.Value = settings.Configuration.ImageBlend.Blend[2];
					trackBar_Blend4.Value = settings.Configuration.ImageBlend.Blend[3];
					trackBar_Blend5.Value = settings.Configuration.ImageBlend.Blend[4];
					trackBar_Blend6.Value = settings.Configuration.ImageBlend.Blend[5];
					trackBar_Blend7.Value = settings.Configuration.ImageBlend.Blend[6];
					trackBar_Blend8.Value = settings.Configuration.ImageBlend.Blend[7];
					trackBar_Blend9.Value = settings.Configuration.ImageBlend.Blend[8];
					toolTip.SetToolTip(trackBar_Blend1, trackBar_Blend1.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend2, trackBar_Blend2.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend3, trackBar_Blend3.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend4, trackBar_Blend4.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend5, trackBar_Blend5.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend6, trackBar_Blend6.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend7, trackBar_Blend7.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend8, trackBar_Blend8.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_Blend9, trackBar_Blend9.Value.ToString() + " %");

					textBox.Text = settings.Configuration.TextOptions.Text;
					if (settings.Configuration.TextOptions.TextAlignment == 1)
					{
						button_TextLeft.FlatStyle = FlatStyle.Standard;
						button_TextCenter.FlatStyle = FlatStyle.Popup;
						button_TextRight.FlatStyle = FlatStyle.Standard;
					}
					else if (settings.Configuration.TextOptions.TextAlignment == 2)
					{
						button_TextLeft.FlatStyle = FlatStyle.Standard;
						button_TextCenter.FlatStyle = FlatStyle.Standard;
						button_TextRight.FlatStyle = FlatStyle.Popup;
					}
					else
					{
						button_TextLeft.FlatStyle = FlatStyle.Popup;
						button_TextCenter.FlatStyle = FlatStyle.Standard;
						button_TextRight.FlatStyle = FlatStyle.Standard;
					}
					Font textFont = new Font(settings.Configuration.TextOptions.FontName, 
						settings.Configuration.TextOptions.FontSize, settings.Configuration.TextOptions.FontStyle);
					label_FontExample.Font = textFont;
					comboBox_AntiAlias.SelectedIndex = settings.Configuration.TextOptions.AntiAliasMode;
					numericUpDown_TextRotationAngle.Value = settings.Configuration.TextOptions.RotationAngle;
					numericUpDown_BorderHeight.Value = settings.Configuration.TextOptions.BorderHeight;
					numericUpDown_BorderWidth.Value = settings.Configuration.TextOptions.BorderWidth;
					switch(settings.Configuration.TextOptions.TextAlign)
					{
						case 1:
							radioButton_TopLeft.Checked = true;
							break;
						case 2:
							radioButton_TopMiddle.Checked = true;
							break;
						case 3:
							radioButton_TopRight.Checked = true;
							break;
						case 4:
							radioButton_MiddleLeft.Checked = true;
							break;
						case 5:
							radioButton_MiddleMiddle.Checked = true;
							break;
						case 6:
							radioButton_MiddleRight.Checked = true;
							break;
						case 7:
							radioButton_BottomLeft.Checked = true;
							break;
						case 8:
							radioButton_BottomMiddle.Checked = true;
							break;
						case 9:
							radioButton_BottomRight.Checked = true;
							break;
					}
					comboBox_TextGradientMode.SelectedIndex = settings.Configuration.TextOptions.GradientMode;
					numericUpDown_TextAngle.Value = settings.Configuration.TextOptions.Angle;
					numericUpDown_TextCenterHeight.Value = settings.Configuration.TextOptions.CenterHeight;
					numericUpDown_TextCenterWidth.Value = settings.Configuration.TextOptions.CenterWidth;
					SetTextStartColor(settings.Configuration.TextOptions.StartColor);
					numericUpDown_TextStartAlpha.Value = settings.Configuration.TextOptions.StartAlpha;
					checkBox_TextEndColor.Checked = settings.Configuration.TextOptions.EndColorEnabled;
					SetTextEndColor(settings.Configuration.TextOptions.EndColor);
					numericUpDown_TextEndAlpha.Value = settings.Configuration.TextOptions.EndAlpha;

					checkBox_EnableTextBlend.Checked = settings.Configuration.TextBlend.Enabled;
					trackBar_TextBlend1.Value = settings.Configuration.TextBlend.Blend[0];
					trackBar_TextBlend2.Value = settings.Configuration.TextBlend.Blend[1];
					trackBar_TextBlend3.Value = settings.Configuration.TextBlend.Blend[2];
					trackBar_TextBlend4.Value = settings.Configuration.TextBlend.Blend[3];
					trackBar_TextBlend5.Value = settings.Configuration.TextBlend.Blend[4];
					trackBar_TextBlend6.Value = settings.Configuration.TextBlend.Blend[5];
					trackBar_TextBlend7.Value = settings.Configuration.TextBlend.Blend[6];
					trackBar_TextBlend8.Value = settings.Configuration.TextBlend.Blend[7];
					trackBar_TextBlend9.Value = settings.Configuration.TextBlend.Blend[8];
					toolTip.SetToolTip(trackBar_TextBlend1, trackBar_TextBlend1.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend2, trackBar_TextBlend2.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend3, trackBar_TextBlend3.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend4, trackBar_TextBlend4.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend5, trackBar_TextBlend5.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend6, trackBar_TextBlend6.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend7, trackBar_TextBlend7.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend8, trackBar_TextBlend8.Value.ToString() + " %");
					toolTip.SetToolTip(trackBar_TextBlend9, trackBar_TextBlend9.Value.ToString() + " %");
					SaveWorkspaceFile = openFileDialog1.FileName;
					DrawGradient();
					IsImageChanged = false;
				}
				catch
				{
					MessageBox.Show("Could not open workspace file: \"" + settings.FileName + "\"",
						"Open Workspace", MessageBoxButtons.OK, MessageBoxIcon.Warning);
				}
			}
		}

		private void menuItem_FileSaveWorkspace_Click(object sender, System.EventArgs e)
		{
			// Display an SaveFileDialog so the user can save the workspace.
			SaveFileDialog saveFileDialog1 = new SaveFileDialog();
			saveFileDialog1.Filter = "Xml (*.xml)|*.xml|All Files (*.*)|*.*";
			saveFileDialog1.Title = "Save Workspace";
			saveFileDialog1.AddExtension = true;
			if (SaveWorkspaceFile != "")
			{
				saveFileDialog1.FileName = SaveWorkspaceFile;
			}
			DialogResult result = saveFileDialog1.ShowDialog();

			// If the file name is not an empty string then save settings.
			if(result == DialogResult.OK & saveFileDialog1.FileName != "")
			{
				UserSettings settings = new UserSettings(saveFileDialog1.FileName);

				settings.Configuration.ImageOptions.Height = numericUpDown_Height.Value;
				settings.Configuration.ImageOptions.Width = numericUpDown_Width.Value;
				settings.Configuration.ImageOptions.GradientMode = comboBox_GradientMode.SelectedIndex;
				settings.Configuration.ImageOptions.Angle = numericUpDown_Angle.Value;
				settings.Configuration.ImageOptions.CenterHeight = numericUpDown_CenterHeight.Value;
				settings.Configuration.ImageOptions.CenterWidth = numericUpDown_CenterWidth.Value;
				settings.Configuration.ImageOptions.StartColor = panel_StartColor.BackColor;
				settings.Configuration.ImageOptions.EndColorEnabled = checkBox_EndColor.Checked;
				settings.Configuration.ImageOptions.EndColor = panel_EndColor.BackColor;

				settings.Configuration.ImageBlend.Enabled = checkBox_EnableTextBlend.Checked;
				int[] blend = new int[9];
				blend[0] = trackBar_Blend1.Value;
				blend[1] = trackBar_Blend2.Value;
				blend[2] = trackBar_Blend3.Value;
				blend[3] = trackBar_Blend4.Value;
				blend[4] = trackBar_Blend5.Value;
				blend[5] = trackBar_Blend6.Value;
				blend[6] = trackBar_Blend7.Value;
				blend[7] = trackBar_Blend8.Value;
				blend[8] = trackBar_Blend9.Value;
				settings.Configuration.ImageBlend.Blend = blend;

				settings.Configuration.TextOptions.Text = textBox.Text;
				if (button_TextCenter.FlatStyle == FlatStyle.Popup)
				{
					settings.Configuration.TextOptions.TextAlignment = 1;
				}
				else if (button_TextRight.FlatStyle == FlatStyle.Popup)
				{
					settings.Configuration.TextOptions.TextAlignment = 2;
				}
				else
				{
					settings.Configuration.TextOptions.TextAlignment = 0;
				}
				settings.Configuration.TextOptions.FontName = label_FontExample.Font.Name;
				settings.Configuration.TextOptions.FontSize = label_FontExample.Font.Size;
				settings.Configuration.TextOptions.FontStyle = label_FontExample.Font.Style;
				settings.Configuration.TextOptions.AntiAliasMode = comboBox_AntiAlias.SelectedIndex;
				settings.Configuration.TextOptions.RotationAngle = numericUpDown_TextRotationAngle.Value;
				settings.Configuration.TextOptions.BorderHeight = numericUpDown_BorderHeight.Value;
				settings.Configuration.TextOptions.BorderWidth = numericUpDown_BorderWidth.Value;
				if (this.radioButton_TopLeft.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 1;
				}
				else if (radioButton_TopMiddle.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 2;
				}
				else if (radioButton_TopRight.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 3;
				}
				else if (radioButton_MiddleLeft.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 4;
				}
				else if (radioButton_MiddleMiddle.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 5;
				}
				else if (radioButton_MiddleRight.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 6;
				}
				else if (radioButton_BottomLeft.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 7;
				}
				else if (radioButton_BottomMiddle.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 8;
				}
				else if (radioButton_BottomRight.Checked)
				{
					settings.Configuration.TextOptions.TextAlign = 9;
				}
				settings.Configuration.TextOptions.GradientMode = comboBox_TextGradientMode.SelectedIndex;
				settings.Configuration.TextOptions.Angle = numericUpDown_TextAngle.Value;
				settings.Configuration.TextOptions.CenterHeight = numericUpDown_TextCenterHeight.Value;
				settings.Configuration.TextOptions.CenterWidth = numericUpDown_TextCenterWidth.Value;
				settings.Configuration.TextOptions.StartColor = panel_TextStartColor.BackColor;
				settings.Configuration.TextOptions.StartAlpha = numericUpDown_TextStartAlpha.Value;
				settings.Configuration.TextOptions.EndColorEnabled = checkBox_TextEndColor.Checked;
				settings.Configuration.TextOptions.EndColor = panel_TextEndColor.BackColor;
				settings.Configuration.TextOptions.EndAlpha = numericUpDown_TextEndAlpha.Value;

				settings.Configuration.TextBlend.Enabled = checkBox_EnableTextBlend.Checked;
				int[] textblend = new int[9];
				textblend[0] = trackBar_TextBlend1.Value;
				textblend[1] = trackBar_TextBlend2.Value;
				textblend[2] = trackBar_TextBlend3.Value;
				textblend[3] = trackBar_TextBlend4.Value;
				textblend[4] = trackBar_TextBlend5.Value;
				textblend[5] = trackBar_TextBlend6.Value;
				textblend[6] = trackBar_TextBlend7.Value;
				textblend[7] = trackBar_TextBlend8.Value;
				textblend[8] = trackBar_TextBlend9.Value;
				settings.Configuration.TextBlend.Blend = textblend;
				try
				{
					settings.SaveSoapData();
					IsImageChanged = false;
					SaveWorkspaceFile = saveFileDialog1.FileName;
				}
				catch
				{
					MessageBox.Show("Could not save workspace file: \"" + settings.FileName + "\"",
						"Save Workspace", MessageBoxButtons.OK, MessageBoxIcon.Warning);
				}
			}
		}

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

		#endregion

		#region Edit Menu...

		private void menuItem_EditCopy_Click(object sender, System.EventArgs e)
		{
			Bitmap bitmap;
			bitmap = new Bitmap(panel_Gradient.Width, panel_Gradient.Height);
			Graphics graphics = Graphics.FromImage(bitmap);
			DrawGradient(graphics);
			graphics.Dispose();
			Clipboard.SetDataObject(bitmap, true);
		}

		#endregion

		#region Help Menu...

		private void menuItem_HelpContents_Click(object sender, System.EventArgs e)
		{
			Help.ShowHelp(this, "GradientMaker.chm", HelpNavigator.TableOfContents);
		}

		private void menuItem_HelpAbout_Click(object sender, System.EventArgs e)
		{
			Form_About formAbout = new Form_About();
			if (this.TopMost) 
			{
				formAbout.TopMost = true;
			}
			formAbout.ShowDialog(this);
		}

		#endregion

		#endregion

		#region Image Options...

		#region Image Size...

		private void numericUpDown_Width_ValueChanged(object sender, System.EventArgs e)
		{
			panel_ExampleBackground.Width = (int)numericUpDown_Width.Value + 20;
			panel_Gradient.Width = (int)numericUpDown_Width.Value;
			DrawGradient();
		}

		private void numericUpDown_Width_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			panel_ExampleBackground.Width = (int)numericUpDown_Width.Value + 20;
			panel_Gradient.Width = (int)numericUpDown_Width.Value;
			DrawGradient();
		}

		private void numericUpDown_Height_ValueChanged(object sender, System.EventArgs e)
		{
			panel_ExampleBackground.Height = (int)numericUpDown_Height.Value + 20;
			panel_Gradient.Height = (int)numericUpDown_Height.Value;
			DrawGradient();
		}

		private void numericUpDown_Height_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			panel_ExampleBackground.Height = (int)numericUpDown_Height.Value + 20;
			panel_Gradient.Height = (int)numericUpDown_Height.Value;
			DrawGradient();
		}

		#endregion

		#region Gradient Mode...

		private void comboBox_GradientMode_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			numericUpDown_Angle.Enabled = (comboBox_GradientMode.SelectedIndex == 4);
			label_Angle.Enabled =(comboBox_GradientMode.SelectedIndex == 4);
			numericUpDown_CenterHeight.Enabled = (comboBox_GradientMode.SelectedIndex == 5);
			label_CenterHeight.Enabled = (comboBox_GradientMode.SelectedIndex == 5);
			numericUpDown_CenterWidth.Enabled = (comboBox_GradientMode.SelectedIndex == 5);
			label_CenterWidth.Enabled = (comboBox_GradientMode.SelectedIndex == 5);
			DrawGradient();
		}

		private void numericUpDown_Angle_ValueChanged(object sender, System.EventArgs e)
		{
			if (numericUpDown_Angle.Value > 360)
			{
				numericUpDown_Angle.Value = 0;
			}
			if (numericUpDown_Angle.Value < 0)
			{
				numericUpDown_Angle.Value = 360;
			}
			DrawGradient();
		}

		private void numericUpDown_Angle_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (numericUpDown_Angle.Value > 360)
			{
				numericUpDown_Angle.Value = 0;
			}
			if (numericUpDown_Angle.Value < 0)
			{
				numericUpDown_Angle.Value = 360;
			}
			DrawGradient();
		}

		private void numericUpDown_CenterHeight_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_CenterHeight_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_CenterWidth_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_CenterWidth_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		#endregion

		#region Start Color...

		private void button_SelectStartColor_Click(object sender, System.EventArgs e)
		{
			ColorDialog startColorDialog = new ColorDialog();
			startColorDialog.Color = panel_StartColor.BackColor;
			if(startColorDialog.ShowDialog() == DialogResult.OK)
			{
				SetStartColor(startColorDialog.Color);
			}
		}

		/// <summary>
		/// Display the selected image start color 
		/// </summary>
		/// <param name="newColor">The new start color</param>
		private void SetStartColor(Color newColor)
		{
			string startRGBText = newColor.ToString().TrimEnd(']').Substring(7);
			comboBox_StartColor.Text = startRGBText;
			label_StartColor.Text = "Start Color: " + startRGBText;
			panel_StartColor.BackColor =  newColor;
		}

		private void comboBox_StartColor_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			Color newColor = Color.FromName(comboBox_StartColor.SelectedItem.ToString());
			panel_StartColor.BackColor =  newColor;
			label_StartColor.Text = "Start Color: " + newColor.ToString().TrimEnd(']').Substring(7);
		}

		private void panel_StartColor_BackColorChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		#endregion

		#region End Color...

		private void button_SelectEndColor_Click(object sender, System.EventArgs e)
		{
			ColorDialog endColorDialog = new ColorDialog();
			endColorDialog.Color = panel_EndColor.BackColor;
			if(endColorDialog.ShowDialog() == DialogResult.OK)
			{
				SetEndColor(endColorDialog.Color);
			}
		}

		/// <summary>
		/// Display the selected image end color
		/// </summary>
		/// <param name="newColor">The new end color</param>
		private void SetEndColor(Color newColor)
		{
			string endRGBText = newColor.ToString().TrimEnd(']').Substring(7);
			comboBox_EndColor.Text = endRGBText;
			checkBox_EndColor.Text = "End Color: " + endRGBText;
			panel_EndColor.BackColor = newColor;
		}

		private void comboBox_EndColor_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			Color newColor = Color.FromName(comboBox_EndColor.SelectedItem.ToString());
			panel_EndColor.BackColor =  newColor;
			checkBox_EndColor.Text = "End Color: " + newColor.ToString().TrimEnd(']').Substring(7);
		}

		private void panel_EndColor_BackColorChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void checkBox_EndColor_CheckedChanged(object sender, System.EventArgs e)
		{
			if (checkBox_EndColor.Checked)
			{
				comboBox_EndColor.Enabled = true;
				button_SelectEndColor.Enabled = true;
			}
			else
			{
				comboBox_EndColor.Enabled = false;
				button_SelectEndColor.Enabled = false;
			}
			DrawGradient();
		}

		#endregion

		#endregion

		#region Blend Options Changed...

		private void checkBox_ImageEnableBlend_CheckedChanged(object sender, System.EventArgs e)
		{
			if (checkBox_ImageEnableBlend.Checked)
			{
				// If blend is enabled then make sure the gradient is also enabled
				checkBox_EndColor.Checked = true;
			}
			DrawGradient();
		}

		private void trackBar_Blend1_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend1, trackBar_Blend1.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend2_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend2, trackBar_Blend2.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend3_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend3, trackBar_Blend3.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend4_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend4, trackBar_Blend4.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend5_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend5, trackBar_Blend5.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend6_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend6, trackBar_Blend6.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend7_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend7, trackBar_Blend7.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend8_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend8, trackBar_Blend8.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_Blend9_Scroll(object sender, System.EventArgs e)
		{
			// Image blend example added to Version 1.2
			listBox_ImageBlendExamples.SelectedIndex = -1;
			SetImageBlendModeOn();
			toolTip.SetToolTip(trackBar_Blend9, trackBar_Blend9.Value.ToString() + " %");
			DrawGradient();
		}

		/// <summary>
		/// Set the image blend mode on
		/// </summary>
		private void SetImageBlendModeOn()
		{
			checkBox_ImageEnableBlend.Checked = true;
			checkBox_EndColor.Checked = true;
		}

		#endregion

		#region Blend Examples...

		private void listBox_ImageBlendExamples_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			// Image blend example added to Version 1.2
			ImageBlendExample();
		}

		private void listBox_ImageBlendExamples_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			// Image blend example added to Version 1.2
			if (e.KeyCode == Keys.Enter)
			{
				ImageBlendExample();
			}
		}

		/// <summary>
		/// Set the image blend sliders to the example blends
		/// </summary>
		private void ImageBlendExample()
		{
			// Image blend example added to Version 1.2
			const double toRadians = Math.PI / 180f; // Factor to convert degrees to radians
			switch (listBox_ImageBlendExamples.SelectedIndex)
			{
				case 0: // Default
					ImageBlendExample(0, 20, 40, 60, 70, 80, 90, 95, 100);
					break;
				case 1: // Bell - Thin Left
					ImageBlendExample(25, 50, 100, 50, 25,12, 6, 3, 0);
					break;
				case 2: // Bell - Thick Left
					ImageBlendExample(50, 75, 100, 75, 50, 25, 12, 6, 0);
					break;
				case 3: // Bell - Thin Center
					ImageBlendExample(0, 12, 25, 50, 100, 50, 25, 12, 0);
					break;
				case 4: // Bell - Thick Center
					ImageBlendExample(0, 25, 50, 75, 100, 75, 50, 25, 0);
					break;
				case 5: // Bell - Thin Right
					ImageBlendExample(0, 3, 6, 12, 25, 50, 100, 50, 25);
					break;
				case 6: // Bell - Thick Right
					ImageBlendExample(0, 6, 12, 25, 50, 75, 100, 75, 50);
					break;
				case 7: // Linear
					ImageBlendExample(0, 12.5, 25, 37.5, 50, 62.5, 75, 87.5, 100);
					break;
				case 8: // Sine 1
					ImageBlendExample( Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50);
					break;
				case 9: // Sine 2
					ImageBlendExample( Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(360f * toRadians) * 50f + 50);
					break;
				case 10: // Sine 3
					ImageBlendExample( Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50);
					break;
				case 11: // Sine 4
					ImageBlendExample( Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50);
					break;
				case 12: // Triangle - Left
					ImageBlendExample(0, 50, 100, 83.3, 66.7, 50, 33.3, 16.7, 0);
					break;
				case 13: // Triangle - Center
					ImageBlendExample(0, 25, 50, 75, 100, 75, 50, 25, 0);
					break;
				case 14: // Triangle - Right
					ImageBlendExample(0, 16.7, 33.3, 50, 66.7, 83.3, 100, 50, 0);
					break;
			}
			SetImageBlendModeOn();
			DrawGradient();
		}

		/// <summary>
		/// Set the image blend sliders to the points provided as parameters
		/// </summary>
		/// <param name="p1">Slider 1 value (Range 0 to 100)</param>
		/// <param name="p2">Slider 2 value (Range 0 to 100)</param>
		/// <param name="p3">Slider 3 value (Range 0 to 100)</param>
		/// <param name="p4">Slider 4 value (Range 0 to 100)</param>
		/// <param name="p5">Slider 5 value (Range 0 to 100)</param>
		/// <param name="p6">Slider 6 value (Range 0 to 100)</param>
		/// <param name="p7">Slider 7 value (Range 0 to 100)</param>
		/// <param name="p8">Slider 8 value (Range 0 to 100)</param>
		/// <param name="p9">Slider 9 value (Range 0 to 100)</param>
		private void ImageBlendExample(double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9)
		{
			// Image blend example added to Version 1.2
			trackBar_Blend1.Value = (int)p1;
			trackBar_Blend2.Value = (int)p2;
			trackBar_Blend3.Value = (int)p3;
			trackBar_Blend4.Value = (int)p4;
			trackBar_Blend5.Value = (int)p5;
			trackBar_Blend6.Value = (int)p6;
			trackBar_Blend7.Value = (int)p7;
			trackBar_Blend8.Value = (int)p8;
			trackBar_Blend9.Value = (int)p9;
			toolTip.SetToolTip(trackBar_Blend1, trackBar_Blend1.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend2, trackBar_Blend2.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend3, trackBar_Blend3.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend4, trackBar_Blend4.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend5, trackBar_Blend5.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend6, trackBar_Blend6.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend7, trackBar_Blend7.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend8, trackBar_Blend8.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_Blend9, trackBar_Blend9.Value.ToString() + " %");
		}

		#endregion

		#region Text Options...

		#region Text...

		private void textBox_TextChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void button_Font_Click(object sender, System.EventArgs e)
		{
			FontDialog fontDialog = new FontDialog();
			fontDialog.Font = label_FontExample.Font;
			if (fontDialog.ShowDialog() == DialogResult.OK)
			{
				label_FontExample.Font = fontDialog.Font;
				DrawGradient();
			}
		}

		#endregion

		#region Anti Alias Mode...

		private void comboBox_AntiAlias_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			// Anti-Alias comboBox added to Version 1.2
			DrawGradient();
		}

		#endregion

		#region Text Alignment...

		private void button_TextLeft_Click(object sender, System.EventArgs e)
		{
			// This button was added to Version 1.1
			button_TextLeft.FlatStyle = FlatStyle.Popup;
			button_TextCenter.FlatStyle = FlatStyle.Standard;
			button_TextRight.FlatStyle = FlatStyle.Standard;
			DrawGradient();
		}

		private void button_TextCenter_Click(object sender, System.EventArgs e)
		{
			// This button was added to Version 1.1
			button_TextLeft.FlatStyle = FlatStyle.Standard;
			button_TextCenter.FlatStyle = FlatStyle.Popup;
			button_TextRight.FlatStyle = FlatStyle.Standard;
			DrawGradient();
		}

		private void button_TextRight_Click(object sender, System.EventArgs e)
		{
			// This button was added to Version 1.1
			button_TextLeft.FlatStyle = FlatStyle.Standard;
			button_TextCenter.FlatStyle = FlatStyle.Standard;
			button_TextRight.FlatStyle = FlatStyle.Popup;
			DrawGradient();
		}

		#endregion

		#region Text Border...

		private void numericUpDown_BorderHeight_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_BorderHeight_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_BorderWidth_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_BorderWidth_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		#endregion

		#region Text Rotation Angle...

		private void numericUpDown_TextRotationAngle_ValueChanged(object sender, System.EventArgs e)
		{
			// Text rotation was added to Version 1.1
			if (numericUpDown_TextRotationAngle.Value > 360)
			{
				numericUpDown_TextRotationAngle.Value = 0;
			}
			if (numericUpDown_TextRotationAngle.Value < 0)
			{
				numericUpDown_TextRotationAngle.Value = 360;
			}
			DrawGradient();
		}

		private void numericUpDown_TextRotationAngle_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			// Text rotation was added to Version 1.1
			if (numericUpDown_TextRotationAngle.Value > 360)
			{
				numericUpDown_TextRotationAngle.Value = 0;
			}
			if (numericUpDown_TextRotationAngle.Value < 0)
			{
				numericUpDown_TextRotationAngle.Value = 360;
			}
			DrawGradient();
		}

		#endregion

		#region Text align option changed...
 
		private void radioButton_TopLeft_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, true);
			DrawGradient();
		}

		private void radioButton_TopMiddle_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, false);
			DrawGradient();
		}

		private void radioButton_TopRight_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, true);
			DrawGradient();
		}

		private void radioButton_MiddleLeft_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(false, true);
			DrawGradient();
		}

		private void radioButton_MiddleMiddle_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(false, false);
			DrawGradient();
		}

		private void radioButton_MiddleRight_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(false, true);
			DrawGradient();
		}

		private void radioButton_BottomLeft_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, true);
			DrawGradient();
		}

		private void radioButton_BottomMiddle_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, false);
			DrawGradient();
		}

		private void radioButton_BottomRight_CheckedChanged(object sender, System.EventArgs e)
		{
			EnableTextBorderOptions(true, true);
			DrawGradient();
		}

		/// <summary>
		/// Enable/Disable Text Border based upon Text Aligh property
		/// </summary>
		/// <param name="EnableBorderHeight">Enable Text Border Height option</param>
		/// <param name="EnableBorderWidth">Enable text Border Width option </param>
		private void EnableTextBorderOptions(bool EnableBorderHeight, bool EnableBorderWidth)
		{
			label_BorderHeight.Enabled = EnableBorderHeight;
			numericUpDown_BorderHeight.Enabled = EnableBorderHeight;
			label_BorderWidth.Enabled = EnableBorderWidth;
			numericUpDown_BorderWidth.Enabled = EnableBorderWidth;
		}

		#endregion

		#region Text Gradient Mode...

		private void comboBox_TextGradientMode_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			numericUpDown_TextAngle.Enabled = (comboBox_TextGradientMode.SelectedIndex == 4);
			label_TextAngle.Enabled =(comboBox_TextGradientMode.SelectedIndex == 4);
			numericUpDown_TextCenterHeight.Enabled =(comboBox_TextGradientMode.SelectedIndex == 5);
			label_TextCenterHeight.Enabled =(comboBox_TextGradientMode.SelectedIndex == 5);
			numericUpDown_TextCenterWidth.Enabled =(comboBox_TextGradientMode.SelectedIndex == 5);
			label_TextCenterWidth.Enabled =(comboBox_TextGradientMode.SelectedIndex == 5);
			DrawGradient();
		}

		private void numericUpDown_TextAngle_ValueChanged(object sender, System.EventArgs e)
		{
			if (numericUpDown_TextAngle.Value > 360)
			{
				numericUpDown_TextAngle.Value = 0;
			}
			if (numericUpDown_TextAngle.Value < 0)
			{
				numericUpDown_TextAngle.Value = 360;
			}
			DrawGradient();
		}

		private void numericUpDown_TextAngle_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if (numericUpDown_TextAngle.Value > 360)
			{
				numericUpDown_TextAngle.Value = 0;
			}
			if (numericUpDown_TextAngle.Value < 0)
			{
				numericUpDown_TextAngle.Value = 360;
			}
			DrawGradient();
		}

		private void numericUpDown_TextCenterHeight_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_TextCenterHeight_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_TextCenterWidth_ValueChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_TextCenterWidth_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			DrawGradient();
		}

		#endregion

		#region Text Start Color...

		private void button_TextStartColor_Click(object sender, System.EventArgs e)
		{
			ColorDialog startColorDialog = new ColorDialog();
			startColorDialog.Color = panel_TextStartColor.BackColor;
			if(startColorDialog.ShowDialog() == DialogResult.OK)
			{
				SetTextStartColor(startColorDialog.Color);
			}
		}

		/// <summary>
		/// Display the selected text start color
		/// </summary>
		/// <param name="newColor">New text start color</param>
		private void SetTextStartColor(Color newColor)
		{
			string startRGBText = newColor.ToString().TrimEnd(']').Substring(7);
			comboBox_TextStartColor.Text = startRGBText;
			label_TextStartColor.Text = "Start Color: " + startRGBText;
			panel_TextStartColor.BackColor =  newColor;
		}

		private void comboBox_TextStartColor_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			Color newColor = Color.FromName(comboBox_TextStartColor.SelectedItem.ToString());
			panel_TextStartColor.BackColor =  newColor;
			label_TextStartColor.Text = "Start Color: " + newColor.ToString().TrimEnd(']').Substring(7);
		}

		private void panel_TextStartColor_BackColorChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_TextStartAlpha_ValueChanged(object sender, System.EventArgs e)
		{
			// Alpha option was added to Version 1.1
			DrawGradient();
		}

		private void numericUpDown_TextStartAlpha_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			// Alpha option was added to Version 1.1
			DrawGradient();
		}

		#endregion

		#region Text End Color...

		private void button_TextEndColor_Click(object sender, System.EventArgs e)
		{
			ColorDialog endColorDialog = new ColorDialog();
			endColorDialog.Color = panel_TextEndColor.BackColor;
			if(endColorDialog.ShowDialog() == DialogResult.OK)
			{
				SetTextEndColor(endColorDialog.Color);
			}
		}

		/// <summary>
		/// Display the selected text end color
		/// </summary>
		/// <param name="newColor">New text end color</param>
		private void SetTextEndColor(Color newColor)
		{
			string endRGBText = newColor.ToString().TrimEnd(']').Substring(7);
			comboBox_TextEndColor.Text = endRGBText;
			checkBox_TextEndColor.Text = "End Color: " + endRGBText;
			panel_TextEndColor.BackColor =  newColor;
		}

		private void checkBox_TextEndColor_CheckedChanged(object sender, System.EventArgs e)
		{
			if (checkBox_TextEndColor.Checked)
			{
				comboBox_TextEndColor.Enabled = true;
				button_TextEndColor.Enabled = true;
				numericUpDown_TextEndAlpha.Enabled = true;
			}
			else
			{
				comboBox_TextEndColor.Enabled = false;
				button_TextEndColor.Enabled = false;
				numericUpDown_TextEndAlpha.Enabled = false;
			}
			DrawGradient();
		}

		private void comboBox_TextEndColor_SelectedIndexChanged(object sender, System.EventArgs e)
		{
			Color newColor = Color.FromName(comboBox_TextEndColor.SelectedItem.ToString());
			panel_TextEndColor.BackColor =  newColor;
			checkBox_TextEndColor.Text = "End Color: " + newColor.ToString().TrimEnd(']').Substring(7);
		}

		private void panel_TextEndColor_BackColorChanged(object sender, System.EventArgs e)
		{
			DrawGradient();
		}

		private void numericUpDown_TextEndAlpha_ValueChanged(object sender, System.EventArgs e)
		{
			// Alpha option was added to Version 1.1
			DrawGradient();
		}

		private void numericUpDown_TextEndAlpha_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			// Alpha option was added to Version 1.1
			DrawGradient();
		}

		#endregion

		#endregion

		#region Text Blend Options Changed...

		private void checkBox_EnableTextBlend_CheckedChanged(object sender, System.EventArgs e)
		{
			if (checkBox_EnableTextBlend.Checked)
			{
				// If text blend is enabled then make sure the text gradient is also enabled
				checkBox_TextEndColor.Checked = true;
			}
			DrawGradient();
		}

		private void trackBar_TextBlend1_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend1, trackBar_TextBlend1.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend2_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend2, trackBar_TextBlend2.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend3_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend3, trackBar_TextBlend3.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend4_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend4, trackBar_TextBlend4.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend5_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend5, trackBar_TextBlend5.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend6_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend6, trackBar_TextBlend6.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend7_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend7, trackBar_TextBlend7.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend8_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend8, trackBar_TextBlend8.Value.ToString() + " %");
			DrawGradient();
		}

		private void trackBar_TextBlend9_Scroll(object sender, System.EventArgs e)
		{
			// Text blend example added to Version 1.2
			listBox_TextBlendExamples.SelectedIndex = -1;
			SetTextBlendModeOn();
			toolTip.SetToolTip(trackBar_TextBlend9, trackBar_TextBlend9.Value.ToString() + " %");
			DrawGradient();
		}

		/// <summary>
		///Set the text blend mode on
		/// </summary>
		private void SetTextBlendModeOn()
		{
			checkBox_TextEndColor.Checked = true;
			checkBox_EnableTextBlend.Checked = true;
		}

		#endregion

		#region Text Blend Examples...

		private void listBox_TextBlendExamples_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
		{
			// Text blend example added to Version 1.2
			TextBlendExample();
		}

		private void listBox_TextBlendExamples_KeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			// Text blend example added to Version 1.2
			if (e.KeyCode == Keys.Enter)
			{
				TextBlendExample();
			}
		}

		/// <summary>
		/// Set the text blend sliders to the example blends
		/// </summary>
		private void TextBlendExample()
		{
			// Text blend example added to Version 1.2
			const double toRadians = Math.PI / 180f; // Factor to convert degrees to radians
			switch (listBox_TextBlendExamples.SelectedIndex)
			{
				case 0: // Default
					TextBlendExample(0, 20, 40, 60, 70, 80, 90, 95, 100);
					break;
				case 1: // Bell - Thin Left
					TextBlendExample(25, 50, 100, 50, 25,12, 6, 3, 0);
					break;
				case 2: // Bell - Thick Left
					TextBlendExample(50, 75, 100, 75, 50, 25, 12, 6, 0);
					break;
				case 3: // Bell - Thin Center
					TextBlendExample(0, 12, 25, 50, 100, 50, 25, 12, 0);
					break;
				case 4: // Bell - Thick Center
					TextBlendExample(0, 25, 50, 75, 100, 75, 50, 25, 0);
					break;
				case 5: // Bell - Thin Right
					TextBlendExample(0, 3, 6, 12, 25, 50, 100, 50, 25);
					break;
				case 6: // Bell - Thick Right
					TextBlendExample(0, 6, 12, 25, 50, 75, 100, 75, 50);
					break;
				case 7: // Linear
					TextBlendExample(0, 12.5, 25, 37.5, 50, 62.5, 75, 87.5, 100);
					break;
				case 8: // Sine 1
					TextBlendExample( Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50);
					break;
				case 9: // Sine 2
					TextBlendExample( Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(360f * toRadians) * 50f + 50);
					break;
				case 10: // Sine 3
					TextBlendExample( Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50);
					break;
				case 11: // Sine 4
					TextBlendExample( Math.Sin(180f * toRadians) * 50f + 50,
						Math.Sin(225f * toRadians) * 50f + 50,
						Math.Sin(270f * toRadians) * 50f + 50,
						Math.Sin(315f * toRadians) * 50f + 50,
						Math.Sin(0f * toRadians) * 50f + 50,
						Math.Sin(45f * toRadians) * 50f + 50,
						Math.Sin(90f * toRadians) * 50f + 50,
						Math.Sin(135f * toRadians) * 50f + 50,
						Math.Sin(180f * toRadians) * 50f + 50);
					break;
				case 12: // Triangle - Left
					TextBlendExample(0, 50, 100, 83.3, 66.7, 50, 33.3, 16.7, 0);
					break;
				case 13: // Triangle - Center
					TextBlendExample(0, 25, 50, 75, 100, 75, 50, 25, 0);
					break;
				case 14: // Triangle - Right
					TextBlendExample(0, 16.7, 33.3, 50, 66.7, 83.3, 100, 50, 0);
					break;
			}
			SetTextBlendModeOn();
			DrawGradient();
		}

		/// <summary>
		/// Set the text blend sliders to the points provided as parameters
		/// </summary>
		/// <param name="p1">Slider 1 value (Range 0 to 100)</param>
		/// <param name="p2">Slider 2 value (Range 0 to 100)</param>
		/// <param name="p3">Slider 3 value (Range 0 to 100)</param>
		/// <param name="p4">Slider 4 value (Range 0 to 100)</param>
		/// <param name="p5">Slider 5 value (Range 0 to 100)</param>
		/// <param name="p6">Slider 6 value (Range 0 to 100)</param>
		/// <param name="p7">Slider 7 value (Range 0 to 100)</param>
		/// <param name="p8">Slider 8 value (Range 0 to 100)</param>
		/// <param name="p9">Slider 9 value (Range 0 to 100)</param>
		private void TextBlendExample(double p1, double p2, double p3, double p4, double p5, double p6, double p7, double p8, double p9)
		{
			// Text blend example added to Version 1.2
			trackBar_TextBlend1.Value = (int)p1;
			trackBar_TextBlend2.Value = (int)p2;
			trackBar_TextBlend3.Value = (int)p3;
			trackBar_TextBlend4.Value = (int)p4;
			trackBar_TextBlend5.Value = (int)p5;
			trackBar_TextBlend6.Value = (int)p6;
			trackBar_TextBlend7.Value = (int)p7;
			trackBar_TextBlend8.Value = (int)p8;
			trackBar_TextBlend9.Value = (int)p9;
			toolTip.SetToolTip(trackBar_TextBlend1, trackBar_TextBlend1.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend2, trackBar_TextBlend2.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend3, trackBar_TextBlend3.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend4, trackBar_TextBlend4.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend5, trackBar_TextBlend5.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend6, trackBar_TextBlend6.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend7, trackBar_TextBlend7.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend8, trackBar_TextBlend8.Value.ToString() + " %");
			toolTip.SetToolTip(trackBar_TextBlend9, trackBar_TextBlend9.Value.ToString() + " %");
		}

		#endregion

		#region Graphics Drawing Functions...
	
		/// <summary>
		/// Update the example displayed in the panel 
		/// </summary>
		private void DrawGradient()
		{
			// Create a bitmap the same size as the panel. We use this as a buffer
			// so the screen image does not flicker when updated quickly.
			Bitmap bitmap;
			bitmap = new Bitmap(panel_Gradient.Width, panel_Gradient.Height);
			Graphics graphicsBuffer = Graphics.FromImage(bitmap);
			DrawGradient(graphicsBuffer);

			// Copy the buffer to the panel graphics object
			Graphics graphics = panel_Gradient.CreateGraphics();
			graphics.DrawImageUnscaled(bitmap, 0, 0);
			graphicsBuffer.Dispose();
			graphics.Dispose();
			IsImageChanged = true;
		}

		/// <summary>
		/// Draw the gradient and selected text
		/// </summary>
		/// <param name="graphics">Graphics object on which to draw the gradient image</param>
		private void DrawGradient(Graphics graphics)
		{
			DrawBackground(graphics);
			if (textBox.Text != "")
			{
				DrawText(graphics);
			}
		}

		/// <summary>
		/// Draw the background of the image
		/// </summary>
		/// <param name="graphics">Graphics object</param>
		private void DrawBackground(Graphics graphics)
		{
			graphics.Clear(Color.White);
			Rectangle rectBrush = new Rectangle( 0, 0, panel_Gradient.Width, panel_Gradient.Height);
			Brush brush;
			if (checkBox_EndColor.Checked)
			{
				switch (comboBox_GradientMode.SelectedIndex)
				{
					case 0:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							LinearGradientMode.Horizontal);
						break;
					case 1:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							LinearGradientMode.Vertical);
						break;
					case 2:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							LinearGradientMode.BackwardDiagonal);
						break;
					case 3:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							LinearGradientMode.ForwardDiagonal);
						break;
					case 4:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							(float)numericUpDown_Angle.Value);
						break;
					case 5:
						PointF[] rect = { new PointF(rectBrush.Left, rectBrush.Top), new PointF(rectBrush.Left, rectBrush.Height),
							new PointF(rectBrush.Width, rectBrush.Height),
							new PointF(rectBrush.Width, rectBrush.Top), new PointF(rectBrush.Left, rectBrush.Top) };
						brush = new PathGradientBrush(rect);
						((PathGradientBrush)brush).CenterColor = panel_EndColor.BackColor;
						((PathGradientBrush)brush).CenterPoint = new PointF(
							panel_Gradient.Width * (float)numericUpDown_CenterWidth.Value / 100.0f, 
							panel_Gradient.Height * (float)numericUpDown_CenterHeight.Value / 100.0f );
						((PathGradientBrush)brush).SurroundColors = new Color[1] { panel_StartColor.BackColor };
						break;
					default:
						brush = new LinearGradientBrush(rectBrush, panel_StartColor.BackColor, panel_EndColor.BackColor, 
							LinearGradientMode.Horizontal);
						break;
				}
				if (checkBox_ImageEnableBlend.Checked)
				{
					// Image blend is selected so add blend
					Blend blend = new Blend(9);
					blend.Positions[0] = 0.0f;
					blend.Positions[1] = 0.125f;
					blend.Positions[2] = 0.25f;
					blend.Positions[3] = 0.375f;
					blend.Positions[4] = 0.5f;
					blend.Positions[5] = 0.625f;
					blend.Positions[6] = 0.75f;
					blend.Positions[7] = 0.875f;
					blend.Positions[8] = 1.0f;
					blend.Factors[0] = (float)trackBar_Blend1.Value / 100.0f;
					blend.Factors[1] = (float)trackBar_Blend2.Value / 100.0f;
					blend.Factors[2] = (float)trackBar_Blend3.Value / 100.0f;
					blend.Factors[3] = (float)trackBar_Blend4.Value / 100.0f;
					blend.Factors[4] = (float)trackBar_Blend5.Value / 100.0f;
					blend.Factors[5] = (float)trackBar_Blend6.Value / 100.0f;
					blend.Factors[6] = (float)trackBar_Blend7.Value / 100.0f;
					blend.Factors[7] = (float)trackBar_Blend8.Value / 100.0f;
					blend.Factors[8] = (float)trackBar_Blend9.Value / 100.0f;
					if (comboBox_GradientMode.SelectedIndex != 5)
					{
						((LinearGradientBrush)brush).Blend = blend;
					}
					else
					{
						((PathGradientBrush)brush).Blend = blend;
					}
				}
			}
			else
			{
				// A solid background is selected. Use the same colors for both ends
				brush = new SolidBrush(panel_StartColor.BackColor);
			}
			graphics.FillRectangle(brush, rectBrush);
		}

		/// <summary>
		/// Draw the text of the image
		/// </summary>
		/// <param name="graphics">Graphics object</param>
		private void DrawText(Graphics graphics)
		{
			// Find area for text
			SizeF textSize = graphics.MeasureString(textBox.Text, label_FontExample.Font);
			PointF textLocation = new PointF((float)numericUpDown_BorderWidth.Value, (float)numericUpDown_BorderHeight.Value);
			// Adjust left point
			if (radioButton_TopMiddle.Checked |
				radioButton_MiddleMiddle.Checked |
				radioButton_BottomMiddle.Checked)
			{
				textLocation.X = (panel_Gradient.Width - textSize.Width) / 2;
			}
			else if (radioButton_TopRight.Checked |
				radioButton_MiddleRight.Checked |
				radioButton_BottomRight.Checked)
			{
				textLocation.X = panel_Gradient.Width - textSize.Width - (float)numericUpDown_BorderWidth.Value;
			}
			
			// Adjust top point
			if (radioButton_MiddleLeft.Checked |
				radioButton_MiddleMiddle.Checked |
				radioButton_MiddleRight.Checked)
			{
				textLocation.Y = (panel_Gradient.Height - textSize.Height) / 2;
			}
			else if (radioButton_BottomLeft.Checked |
				radioButton_BottomMiddle.Checked |
				radioButton_BottomRight.Checked)
			{
				textLocation.Y = panel_Gradient.Height - textSize.Height - (float)numericUpDown_BorderHeight.Value;
			}
			RectangleF textArea = new RectangleF(textLocation, textSize);

			// Rotate graphics object
			// Text rotation was added to Version 1.1
			if (numericUpDown_TextRotationAngle.Value > 0)
			{
				// Shift 0,0 point of the world transform to the center of the text area and rotate
				graphics.TranslateTransform(textArea.Left + (textArea.Width / 2f), textArea.Top + (textArea.Height / 2f));
				graphics.RotateTransform((float)numericUpDown_TextRotationAngle.Value);
				// Shift the text area center to the 0,0 point of the world transform
				textArea = new RectangleF( -(textArea.Width / 2f), -(textArea.Height / 2f), textArea.Width, textArea.Height);
			}

			// Text rendering hint added to Version 1.2 - Anti-Alias works best with rotated text
			switch (comboBox_AntiAlias.SelectedIndex)
			{
				case 0:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
					break;
				case 1:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
					break;
				case 2:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
					break;
				case 3:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixel;
					break;
				case 4:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
					break;
				case 5:
					graphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault;
					break;
			}

			// Get colors
			// Alpha option was added to Version 1.1
			Color startColor = Color.FromArgb((int)numericUpDown_TextStartAlpha.Value, panel_TextStartColor.BackColor);
			Color endColor = Color.FromArgb((int)numericUpDown_TextEndAlpha.Value, panel_TextEndColor.BackColor);

			// Get the brush to draw the text
			Brush textBrush;
			if (checkBox_TextEndColor.Checked)
			{
				switch (comboBox_TextGradientMode.SelectedIndex)
				{
					case 0:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, LinearGradientMode.Horizontal);
						break;
					case 1:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, LinearGradientMode.Vertical);
						break;
					case 2:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, LinearGradientMode.BackwardDiagonal);
						break;
					case 3:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, LinearGradientMode.ForwardDiagonal);
						break;
					case 4:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, (float)numericUpDown_TextAngle.Value);
						break;
					case 5:
						PointF[] rect = new PointF[5];
						rect[0] = new PointF(textArea.Left, textArea.Top);
						rect[1] = new PointF(textArea.Left + textArea.Width, textArea.Top);
						rect[2] = new PointF(textArea.Left + textArea.Width, textArea.Top + textArea.Height);
						rect[3] = new PointF(textArea.Left, textArea.Top + textArea.Height);
						rect[4] = new PointF(textArea.Left, textArea.Top);
						textBrush = new PathGradientBrush(rect);
						((PathGradientBrush)textBrush).CenterColor = endColor;
						((PathGradientBrush)textBrush).CenterPoint = new PointF(textArea.Left + (textArea.Width * (float)numericUpDown_TextCenterWidth.Value / 100.0f),
								textArea.Top + (textArea.Height * (float)numericUpDown_TextCenterHeight.Value / 100.0f));
						((PathGradientBrush)textBrush).SurroundColors = new Color[1] { startColor };
						break;
					default:
						textBrush = new LinearGradientBrush(textArea, startColor, 
							endColor, LinearGradientMode.Horizontal);
						break;
				}
				if (checkBox_EnableTextBlend.Checked)
				{
					// Text blend is selected so add blend
					Blend blend = new Blend(11);
					blend.Positions[0] = 0.0f;
					blend.Positions[1] = 0.1f;
					blend.Positions[2] = 0.2f;
					blend.Positions[3] = 0.3f;
					blend.Positions[4] = 0.4f;
					blend.Positions[5] = 0.5f;
					blend.Positions[6] = 0.6f;
					blend.Positions[7] = 0.7f;
					blend.Positions[8] = 0.8f;
					blend.Positions[9] = 0.9f;
					blend.Positions[10] = 1.0f;
					blend.Factors[0] = 0.0f;
					blend.Factors[1] = (float)trackBar_TextBlend1.Value / 100.0f;
					blend.Factors[2] = (float)trackBar_TextBlend2.Value / 100.0f;
					blend.Factors[3] = (float)trackBar_TextBlend3.Value / 100.0f;
					blend.Factors[4] = (float)trackBar_TextBlend4.Value / 100.0f;
					blend.Factors[5] = (float)trackBar_TextBlend5.Value / 100.0f;
					blend.Factors[6] = (float)trackBar_TextBlend6.Value / 100.0f;
					blend.Factors[7] = (float)trackBar_TextBlend7.Value / 100.0f;
					blend.Factors[8] = (float)trackBar_TextBlend8.Value / 100.0f;
					blend.Factors[9] = (float)trackBar_TextBlend9.Value / 100.0f;
					blend.Factors[10] = 1.0f;
					if (comboBox_TextGradientMode.SelectedIndex != 5)
					{
						((LinearGradientBrush)textBrush).Blend = blend;
					}
					else
					{
						((PathGradientBrush)textBrush).Blend = blend;
					}
				}
			}
			else
			{
				// A solid text is selected. Use the same colors for both ends
				textBrush = new SolidBrush(startColor);
			}

			// Draw text
			// Alignment option was added to Version 1.1
			StringFormat format = new StringFormat();
			if (button_TextCenter.FlatStyle == FlatStyle.Popup)
			{
				format.Alignment = StringAlignment.Center;
			}
			else if (button_TextRight.FlatStyle == FlatStyle.Popup)
			{
				format.Alignment = StringAlignment.Far;
			}
			else
			{
				format.Alignment = StringAlignment.Near;
			}
			graphics.DrawString(textBox.Text, label_FontExample.Font, textBrush, textArea, format);
			graphics.ResetTransform();
		}

		#endregion

	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions