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

namespace Project1
{
	/// <summary>
	///
	/// </summary>
	public class Form3 : System.Windows.Forms.Form
	{
		public System.Windows.Forms.RadioButton Option18;
		public System.Windows.Forms.RadioButton Option15;
		public System.Windows.Forms.RadioButton Option16;
		public System.Windows.Forms.RadioButton Option17;
		public System.Windows.Forms.RadioButton Option14;
		public System.Windows.Forms.RadioButton Option7;
		public System.Windows.Forms.RadioButton Option9;
		public System.Windows.Forms.RadioButton Option11;
		public System.Windows.Forms.RadioButton Option13;
		public System.Windows.Forms.RadioButton Option8;
		public System.Windows.Forms.RadioButton Option10;
		public System.Windows.Forms.ComboBox Combo2;
		public System.Windows.Forms.RadioButton Option5;
		public System.Windows.Forms.RadioButton Option6;
		public System.Windows.Forms.RadioButton Option3;
		public System.Windows.Forms.RadioButton Option4;
		public System.Windows.Forms.ComboBox Combo1;
		public System.Windows.Forms.RadioButton Option1;
		public System.Windows.Forms.RadioButton Option2;
		public System.Windows.Forms.Button Command2;
		public System.Windows.Forms.Button Command1;
		public System.Windows.Forms.Label Label7;
		public System.Windows.Forms.Label Label6;
		public System.Windows.Forms.Label Label5;
		public System.Windows.Forms.Label Label4;
		public System.Windows.Forms.Label Label3;
		public System.Windows.Forms.Label Label2;
		public System.Windows.Forms.Label Label1;
		public System.Windows.Forms.RadioButton Option12;

		public IMAGEKIT7Lib.SaveFileConstants SaveType;
		public short JpegQuality, GifAnimeDelay;
		public IMAGEKIT7Lib.JpegSubsampConstants JpegSubsamp;
		public bool Interlace, Transparent, GifAnime;
		public IMAGEKIT7Lib.TiffColorSpaceConstants TiffColorSpace;
		public short PalBlue, PalGreen, PalRed;
		public System.Windows.Forms.Label label8;
		public System.Windows.Forms.RadioButton Option19;
		public System.Windows.Forms.RadioButton Option20;


		/// <summary>
		///
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form3()
		{
			//
			//
			//
			InitializeComponent();

			//
			//
			//
		}

		/// <summary>
		///
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// デザイナ サポートに必要なメソッドです。このメソッドの内容を
		/// コード エディタで変更しないでください。
		/// </summary>
		private void InitializeComponent()
		{
			this.Option18 = new System.Windows.Forms.RadioButton();
			this.Option15 = new System.Windows.Forms.RadioButton();
			this.Option16 = new System.Windows.Forms.RadioButton();
			this.Option17 = new System.Windows.Forms.RadioButton();
			this.Option14 = new System.Windows.Forms.RadioButton();
			this.Option7 = new System.Windows.Forms.RadioButton();
			this.Option9 = new System.Windows.Forms.RadioButton();
			this.Option11 = new System.Windows.Forms.RadioButton();
			this.Option13 = new System.Windows.Forms.RadioButton();
			this.Option8 = new System.Windows.Forms.RadioButton();
			this.Option10 = new System.Windows.Forms.RadioButton();
			this.Combo2 = new System.Windows.Forms.ComboBox();
			this.Option5 = new System.Windows.Forms.RadioButton();
			this.Option6 = new System.Windows.Forms.RadioButton();
			this.Option3 = new System.Windows.Forms.RadioButton();
			this.Option4 = new System.Windows.Forms.RadioButton();
			this.Combo1 = new System.Windows.Forms.ComboBox();
			this.Option1 = new System.Windows.Forms.RadioButton();
			this.Option2 = new System.Windows.Forms.RadioButton();
			this.Command2 = new System.Windows.Forms.Button();
			this.Command1 = new System.Windows.Forms.Button();
			this.Label7 = new System.Windows.Forms.Label();
			this.Label6 = new System.Windows.Forms.Label();
			this.Label5 = new System.Windows.Forms.Label();
			this.Label4 = new System.Windows.Forms.Label();
			this.Label3 = new System.Windows.Forms.Label();
			this.Label2 = new System.Windows.Forms.Label();
			this.Label1 = new System.Windows.Forms.Label();
			this.Option12 = new System.Windows.Forms.RadioButton();
			this.Option19 = new System.Windows.Forms.RadioButton();
			this.label8 = new System.Windows.Forms.Label();
			this.Option20 = new System.Windows.Forms.RadioButton();
			this.SuspendLayout();
			// 
			// Option18
			// 
			this.Option18.BackColor = System.Drawing.SystemColors.Control;
			this.Option18.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option18.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option18.Location = new System.Drawing.Point(96, 286);
			this.Option18.Name = "Option18";
			this.Option18.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option18.Size = new System.Drawing.Size(105, 17);
			this.Option18.TabIndex = 56;
			this.Option18.TabStop = true;
			this.Option18.Text = "PCX";
			// 
			// Option15
			// 
			this.Option15.BackColor = System.Drawing.SystemColors.Control;
			this.Option15.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option15.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option15.Location = new System.Drawing.Point(96, 254);
			this.Option15.Name = "Option15";
			this.Option15.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option15.Size = new System.Drawing.Size(103, 17);
			this.Option15.TabIndex = 54;
			this.Option15.TabStop = true;
			this.Option15.Text = "FPX Uncomp";
			// 
			// Option16
			// 
			this.Option16.BackColor = System.Drawing.SystemColors.Control;
			this.Option16.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option16.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option16.Location = new System.Drawing.Point(217, 254);
			this.Option16.Name = "Option16";
			this.Option16.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option16.Size = new System.Drawing.Size(121, 17);
			this.Option16.TabIndex = 53;
			this.Option16.TabStop = true;
			this.Option16.Text = "FPX Single Color";
			// 
			// Option17
			// 
			this.Option17.BackColor = System.Drawing.SystemColors.Control;
			this.Option17.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option17.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option17.Location = new System.Drawing.Point(353, 254);
			this.Option17.Name = "Option17";
			this.Option17.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option17.Size = new System.Drawing.Size(97, 17);
			this.Option17.TabIndex = 52;
			this.Option17.TabStop = true;
			this.Option17.Text = "FPX JPEG";
			// 
			// Option14
			// 
			this.Option14.BackColor = System.Drawing.SystemColors.Control;
			this.Option14.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option14.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option14.Location = new System.Drawing.Point(96, 222);
			this.Option14.Name = "Option14";
			this.Option14.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option14.Size = new System.Drawing.Size(73, 17);
			this.Option14.TabIndex = 50;
			this.Option14.TabStop = true;
			this.Option14.Text = "PNG";
			// 
			// Option7
			// 
			this.Option7.BackColor = System.Drawing.SystemColors.Control;
			this.Option7.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option7.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option7.Location = new System.Drawing.Point(96, 110);
			this.Option7.Name = "Option7";
			this.Option7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option7.Size = new System.Drawing.Size(113, 17);
			this.Option7.TabIndex = 48;
			this.Option7.TabStop = true;
			this.Option7.Text = "TIFF DUMP";
			// 
			// Option9
			// 
			this.Option9.BackColor = System.Drawing.SystemColors.Control;
			this.Option9.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option9.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option9.Location = new System.Drawing.Point(96, 134);
			this.Option9.Name = "Option9";
			this.Option9.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option9.Size = new System.Drawing.Size(113, 17);
			this.Option9.TabIndex = 47;
			this.Option9.TabStop = true;
			this.Option9.Text = "TIFF FAXG31D";
			// 
			// Option11
			// 
			this.Option11.BackColor = System.Drawing.SystemColors.Control;
			this.Option11.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option11.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option11.Location = new System.Drawing.Point(96, 158);
			this.Option11.Name = "Option11";
			this.Option11.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option11.Size = new System.Drawing.Size(113, 17);
			this.Option11.TabIndex = 46;
			this.Option11.TabStop = true;
			this.Option11.Text = "TIFF FAXG4";
			// 
			// Option13
			// 
			this.Option13.BackColor = System.Drawing.SystemColors.Control;
			this.Option13.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option13.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option13.Location = new System.Drawing.Point(96, 182);
			this.Option13.Name = "Option13";
			this.Option13.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option13.Size = new System.Drawing.Size(97, 17);
			this.Option13.TabIndex = 45;
			this.Option13.TabStop = true;
			this.Option13.Text = "TIFF LZW";
			// 
			// Option8
			// 
			this.Option8.BackColor = System.Drawing.SystemColors.Control;
			this.Option8.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option8.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option8.Location = new System.Drawing.Point(217, 110);
			this.Option8.Name = "Option8";
			this.Option8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option8.Size = new System.Drawing.Size(129, 17);
			this.Option8.TabIndex = 44;
			this.Option8.TabStop = true;
			this.Option8.Text = "TIFF CCITTRLE";
			// 
			// Option10
			// 
			this.Option10.BackColor = System.Drawing.SystemColors.Control;
			this.Option10.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option10.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option10.Location = new System.Drawing.Point(217, 134);
			this.Option10.Name = "Option10";
			this.Option10.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option10.Size = new System.Drawing.Size(121, 17);
			this.Option10.TabIndex = 43;
			this.Option10.TabStop = true;
			this.Option10.Text = "TIFF FAXG32D";
			// 
			// Combo2
			// 
			this.Combo2.BackColor = System.Drawing.SystemColors.Window;
			this.Combo2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo2.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo2.Items.AddRange(new object[] {
														"RGB",
														"CMYK"});
			this.Combo2.Location = new System.Drawing.Point(217, 182);
			this.Combo2.Name = "Combo2";
			this.Combo2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo2.Size = new System.Drawing.Size(113, 20);
			this.Combo2.TabIndex = 42;
			this.Combo2.Text = "RGB";
			// 
			// Option5
			// 
			this.Option5.BackColor = System.Drawing.SystemColors.Control;
			this.Option5.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option5.Location = new System.Drawing.Point(96, 78);
			this.Option5.Name = "Option5";
			this.Option5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option5.Size = new System.Drawing.Size(89, 17);
			this.Option5.TabIndex = 40;
			this.Option5.TabStop = true;
			this.Option5.Text = "GIF";
			// 
			// Option6
			// 
			this.Option6.BackColor = System.Drawing.SystemColors.Control;
			this.Option6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option6.Location = new System.Drawing.Point(217, 78);
			this.Option6.Name = "Option6";
			this.Option6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option6.Size = new System.Drawing.Size(81, 17);
			this.Option6.TabIndex = 39;
			this.Option6.TabStop = true;
			this.Option6.Text = "GIF ANIME";
			// 
			// Option3
			// 
			this.Option3.BackColor = System.Drawing.SystemColors.Control;
			this.Option3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option3.Location = new System.Drawing.Point(96, 46);
			this.Option3.Name = "Option3";
			this.Option3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option3.Size = new System.Drawing.Size(65, 17);
			this.Option3.TabIndex = 37;
			this.Option3.TabStop = true;
			this.Option3.Text = "JPEG";
			// 
			// Option4
			// 
			this.Option4.BackColor = System.Drawing.SystemColors.Control;
			this.Option4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option4.Location = new System.Drawing.Point(217, 46);
			this.Option4.Name = "Option4";
			this.Option4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option4.Size = new System.Drawing.Size(121, 17);
			this.Option4.TabIndex = 36;
			this.Option4.TabStop = true;
			this.Option4.Text = "JPEG PROGRESS";
			// 
			// Combo1
			// 
			this.Combo1.BackColor = System.Drawing.SystemColors.Window;
			this.Combo1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Combo1.ForeColor = System.Drawing.SystemColors.WindowText;
			this.Combo1.Items.AddRange(new object[] {
														"4:1:1",
														"4:2:2",
														"4:4:4"});
			this.Combo1.Location = new System.Drawing.Point(353, 46);
			this.Combo1.Name = "Combo1";
			this.Combo1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Combo1.Size = new System.Drawing.Size(105, 20);
			this.Combo1.TabIndex = 35;
			this.Combo1.Text = "4:1:1";
			// 
			// Option1
			// 
			this.Option1.BackColor = System.Drawing.SystemColors.Control;
			this.Option1.Checked = true;
			this.Option1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option1.Location = new System.Drawing.Point(96, 14);
			this.Option1.Name = "Option1";
			this.Option1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option1.Size = new System.Drawing.Size(57, 17);
			this.Option1.TabIndex = 33;
			this.Option1.TabStop = true;
			this.Option1.Text = "BMP";
			// 
			// Option2
			// 
			this.Option2.BackColor = System.Drawing.SystemColors.Control;
			this.Option2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option2.Location = new System.Drawing.Point(217, 14);
			this.Option2.Name = "Option2";
			this.Option2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option2.Size = new System.Drawing.Size(127, 17);
			this.Option2.TabIndex = 32;
			this.Option2.TabStop = true;
			this.Option2.Text = "BMP(Compressed)";
			// 
			// Command2
			// 
			this.Command2.BackColor = System.Drawing.SystemColors.Control;
			this.Command2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command2.Location = new System.Drawing.Point(356, 356);
			this.Command2.Name = "Command2";
			this.Command2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command2.Size = new System.Drawing.Size(97, 36);
			this.Command2.TabIndex = 30;
			this.Command2.Text = "Cancel";
			this.Command2.Click += new System.EventHandler(this.Command2_Click);
			// 
			// Command1
			// 
			this.Command1.BackColor = System.Drawing.SystemColors.Control;
			this.Command1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Command1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Command1.Location = new System.Drawing.Point(248, 356);
			this.Command1.Name = "Command1";
			this.Command1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Command1.Size = new System.Drawing.Size(97, 36);
			this.Command1.TabIndex = 29;
			this.Command1.Text = "Save";
			this.Command1.Click += new System.EventHandler(this.Command1_Click);
			// 
			// Label7
			// 
			this.Label7.BackColor = System.Drawing.SystemColors.Control;
			this.Label7.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label7.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label7.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label7.Location = new System.Drawing.Point(16, 286);
			this.Label7.Name = "Label7";
			this.Label7.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label7.Size = new System.Drawing.Size(65, 17);
			this.Label7.TabIndex = 55;
			this.Label7.Text = "PCX";
			this.Label7.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label6
			// 
			this.Label6.BackColor = System.Drawing.SystemColors.Control;
			this.Label6.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label6.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label6.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label6.Location = new System.Drawing.Point(16, 254);
			this.Label6.Name = "Label6";
			this.Label6.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label6.Size = new System.Drawing.Size(65, 17);
			this.Label6.TabIndex = 51;
			this.Label6.Text = "FPX";
			this.Label6.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label5
			// 
			this.Label5.BackColor = System.Drawing.SystemColors.Control;
			this.Label5.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label5.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label5.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label5.Location = new System.Drawing.Point(16, 222);
			this.Label5.Name = "Label5";
			this.Label5.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label5.Size = new System.Drawing.Size(65, 17);
			this.Label5.TabIndex = 49;
			this.Label5.Text = "PNG";
			this.Label5.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label4
			// 
			this.Label4.BackColor = System.Drawing.SystemColors.Control;
			this.Label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label4.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label4.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label4.Location = new System.Drawing.Point(16, 110);
			this.Label4.Name = "Label4";
			this.Label4.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label4.Size = new System.Drawing.Size(65, 17);
			this.Label4.TabIndex = 41;
			this.Label4.Text = "TIFF";
			this.Label4.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label3
			// 
			this.Label3.BackColor = System.Drawing.SystemColors.Control;
			this.Label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label3.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label3.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label3.Location = new System.Drawing.Point(16, 78);
			this.Label3.Name = "Label3";
			this.Label3.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label3.Size = new System.Drawing.Size(65, 17);
			this.Label3.TabIndex = 38;
			this.Label3.Text = "GIF";
			this.Label3.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label2
			// 
			this.Label2.BackColor = System.Drawing.SystemColors.Control;
			this.Label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label2.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label2.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label2.Location = new System.Drawing.Point(16, 46);
			this.Label2.Name = "Label2";
			this.Label2.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label2.Size = new System.Drawing.Size(65, 17);
			this.Label2.TabIndex = 34;
			this.Label2.Text = "JPEG";
			this.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Label1
			// 
			this.Label1.BackColor = System.Drawing.SystemColors.Control;
			this.Label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.Label1.Cursor = System.Windows.Forms.Cursors.Default;
			this.Label1.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Label1.Location = new System.Drawing.Point(16, 14);
			this.Label1.Name = "Label1";
			this.Label1.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Label1.Size = new System.Drawing.Size(65, 17);
			this.Label1.TabIndex = 31;
			this.Label1.Text = "BMP";
			this.Label1.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Option12
			// 
			this.Option12.BackColor = System.Drawing.SystemColors.Control;
			this.Option12.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option12.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option12.Location = new System.Drawing.Point(217, 160);
			this.Option12.Name = "Option12";
			this.Option12.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option12.Size = new System.Drawing.Size(129, 17);
			this.Option12.TabIndex = 57;
			this.Option12.TabStop = true;
			this.Option12.Text = "TIFF PACKBITS";
			// 
			// Option19
			// 
			this.Option19.BackColor = System.Drawing.SystemColors.Control;
			this.Option19.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option19.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option19.Location = new System.Drawing.Point(96, 320);
			this.Option19.Name = "Option19";
			this.Option19.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option19.Size = new System.Drawing.Size(105, 17);
			this.Option19.TabIndex = 59;
			this.Option19.TabStop = true;
			this.Option19.Text = "JPEG2000";
			// 
			// label8
			// 
			this.label8.BackColor = System.Drawing.SystemColors.Control;
			this.label8.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
			this.label8.Cursor = System.Windows.Forms.Cursors.Default;
			this.label8.ForeColor = System.Drawing.SystemColors.ControlText;
			this.label8.Location = new System.Drawing.Point(16, 320);
			this.label8.Name = "label8";
			this.label8.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.label8.Size = new System.Drawing.Size(65, 17);
			this.label8.TabIndex = 58;
			this.label8.Text = "JPEG2000";
			this.label8.TextAlign = System.Drawing.ContentAlignment.TopCenter;
			// 
			// Option20
			// 
			this.Option20.BackColor = System.Drawing.SystemColors.Control;
			this.Option20.Cursor = System.Windows.Forms.Cursors.Default;
			this.Option20.ForeColor = System.Drawing.SystemColors.ControlText;
			this.Option20.Location = new System.Drawing.Point(216, 320);
			this.Option20.Name = "Option20";
			this.Option20.RightToLeft = System.Windows.Forms.RightToLeft.No;
			this.Option20.Size = new System.Drawing.Size(144, 17);
			this.Option20.TabIndex = 60;
			this.Option20.TabStop = true;
			this.Option20.Text = "JPEG200 Code Stream";
			// 
			// Form3
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
			this.ClientSize = new System.Drawing.Size(474, 410);
			this.Controls.Add(this.Option20);
			this.Controls.Add(this.Option19);
			this.Controls.Add(this.label8);
			this.Controls.Add(this.Option12);
			this.Controls.Add(this.Option18);
			this.Controls.Add(this.Option15);
			this.Controls.Add(this.Option16);
			this.Controls.Add(this.Option17);
			this.Controls.Add(this.Option14);
			this.Controls.Add(this.Option7);
			this.Controls.Add(this.Option9);
			this.Controls.Add(this.Option11);
			this.Controls.Add(this.Option13);
			this.Controls.Add(this.Option8);
			this.Controls.Add(this.Option10);
			this.Controls.Add(this.Combo2);
			this.Controls.Add(this.Option5);
			this.Controls.Add(this.Option6);
			this.Controls.Add(this.Option3);
			this.Controls.Add(this.Option4);
			this.Controls.Add(this.Combo1);
			this.Controls.Add(this.Option1);
			this.Controls.Add(this.Option2);
			this.Controls.Add(this.Command2);
			this.Controls.Add(this.Command1);
			this.Controls.Add(this.Label7);
			this.Controls.Add(this.Label6);
			this.Controls.Add(this.Label5);
			this.Controls.Add(this.Label4);
			this.Controls.Add(this.Label3);
			this.Controls.Add(this.Label2);
			this.Controls.Add(this.Label1);
			this.Name = "Form3";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Form3";
			this.Load += new System.EventHandler(this.Form3_Load);
			this.ResumeLayout(false);

		}
		#endregion

		private void Command1_Click(object sender, System.EventArgs e)
		{
			// BMP
			if (Option1.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveBMP;
		
			// BMP(compressed)
			if (Option2.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveBMPRLE;
			// JPEG
			if (Option3.Checked == true)
			{
				JpegQuality = 75;
				switch (Combo1.SelectedIndex) {
					case 0:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik411;
						break;
					case 1:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik422;
						break;
					case 2:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik422;
						break;
				}
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveJPEG;
			}
		
			// JPRG PROGRESS
			if (Option4.Checked == true)
			{
				JpegQuality = 75;
				switch (Combo1.SelectedIndex) 
				{
					case 0:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik411;
						break;
					case 1:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik422;
						break;
					case 2:
						JpegSubsamp = IMAGEKIT7Lib.JpegSubsampConstants.ik422;
						break;
				}
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveJPEGProgress;
			}
		
			// GIF
			if (Option5.Checked == true)
			{
				Interlace = true;
				Transparent = false;
				GifAnime = false;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveGIF;
			}
		
			// GIF ANIME
			if (Option6.Checked == true)
			{
				Interlace = true;
				Transparent = false;
				GifAnime = true;
				GifAnimeDelay = 50;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveGIF;
			}
		
			// TIFF DUMP
			if (Option7.Checked == true)
			{
				if (Combo2.SelectedIndex == 1)
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikCMYK;
				else
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikRGB;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFNoncompressed;
			}
		
			// TIFF CCITTRLE
			if (Option8.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFCcittrle;
		
			// TIFF FAXG31D
			if (Option9.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFGroup3_1D;
		
			// TIFF FAXG32D
			if (Option10.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFGroup3_2D;
		
			// TIFF FAXG4
			if (Option11.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFGroup4;
		
			// TIFF PACKBITS
			if (Option12.Checked == true)
			{
				if (Combo2.SelectedIndex == 1)
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikCMYK;
				else
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikRGB;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFPackbits;
			}

			// TIFF LZW
			if (Option13.Checked == true) 
			{
				if (Combo2.SelectedIndex == 1)
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikCMYK;
				else
					TiffColorSpace = IMAGEKIT7Lib.TiffColorSpaceConstants.ikRGB;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveTIFFLZW;
			}

			// PNG
			if (Option14.Checked == true)
			{
				Interlace = true;
				Transparent = true;
				PalBlue = 0;
				PalGreen = 0;
				PalRed = 255;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSavePNG;
			}
		
			// FPX Uncomp
			if (Option15.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveFPXNoncompressed;
		
			// FPX Single Color
			if (Option16.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveFPXSingleColor;
		
			// FPX JPEG
			if (Option17.Checked == true)
			{
				JpegQuality = 75;
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveFPXJpeg;
			}
		
			// PCX
			if (Option18.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSavePCX;

			// JPEG2000
			if (Option19.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveJPEG2000;

			// JPEG2000 Code Stream
			if (Option20.Checked == true)
				SaveType = IMAGEKIT7Lib.SaveFileConstants.ikSaveJPEG2000Stream;

			DialogResult = DialogResult.OK;
		}

		private void Command2_Click(object sender, System.EventArgs e)
		{
			DialogResult = DialogResult.Cancel;
		}

		private void Form3_Load(object sender, System.EventArgs e)
		{
			Combo1.SelectedIndex = 0;
			Combo2.SelectedIndex = 0;

			SaveType = 0;
			JpegQuality = GifAnimeDelay = 0;
			JpegSubsamp = 0;
			Interlace = Transparent = GifAnime = false;
			TiffColorSpace = 0;
			PalBlue = PalGreen = PalRed = 0;
		}
	}
}
