annotate DXTFormat.cs @ 0:a54c09901f4e default tip

Initial commit to Mercurial at v1.9.3 - now GPLed!
author IBBoard <dev@ibboard.co.uk>
date Sat, 06 Oct 2018 19:19:03 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file is a part of the Texture Tool program and is copyright 2006-2018 IBBoard.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // The file and the library/program it is in are licensed under the GNU GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using System.Drawing;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 using System.Collections;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 using System.ComponentModel;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 using System.Windows.Forms;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 using IBBoard.Graphics;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 using IBBoard.Graphics.OpenILPort;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 namespace IBBoard.Relic.TextureTool
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 /// Summary description for DXTFormat.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 public class DXTFormat : System.Windows.Forms.Form
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 public Converter.DXTType ChosenFormat = Converter.DXTType.None;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22 private System.Windows.Forms.Button bttnDxt1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 private System.Windows.Forms.Button bttnDxt3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 private System.Windows.Forms.Button bttnDxt5;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 private System.Windows.Forms.Label lblMessage;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 /// Required designer variable.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 private System.ComponentModel.Container components = null;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 public DXTFormat()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 // Required for Windows Form Designer support
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 InitializeComponent();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 /// Clean up any resources being used.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 protected override void Dispose( bool disposing )
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 if( disposing )
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 if(components != null)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 components.Dispose();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 base.Dispose( disposing );
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 #region Windows Form Designer generated code fibble
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 /// <summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 /// Required method for Designer support - do not modify
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 /// the contents of this method with the code editor.
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 /// </summary>
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 private void InitializeComponent()
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 this.bttnDxt1 = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 this.bttnDxt3 = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 this.bttnDxt5 = new System.Windows.Forms.Button();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 this.lblMessage = new System.Windows.Forms.Label();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 this.SuspendLayout();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 // bttnDxt1
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 this.bttnDxt1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 | System.Windows.Forms.AnchorStyles.Right)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 this.bttnDxt1.Location = new System.Drawing.Point(7, 90);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 this.bttnDxt1.Name = "bttnDxt1";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 this.bttnDxt1.Size = new System.Drawing.Size(94, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
74 this.bttnDxt1.TabIndex = 0;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
75 this.bttnDxt1.Text = "DXT1";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
76 this.bttnDxt1.Click += new System.EventHandler(this.bttnDxt1_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
78 // bttnDxt3
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
79 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
80 this.bttnDxt3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
81 | System.Windows.Forms.AnchorStyles.Right)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
82 this.bttnDxt3.Location = new System.Drawing.Point(107, 90);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
83 this.bttnDxt3.Name = "bttnDxt3";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
84 this.bttnDxt3.Size = new System.Drawing.Size(94, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
85 this.bttnDxt3.TabIndex = 1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
86 this.bttnDxt3.Text = "DXT3";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
87 this.bttnDxt3.Click += new System.EventHandler(this.bttnDxt3_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
88 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
89 // bttnDxt5
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
90 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
91 this.bttnDxt5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
92 | System.Windows.Forms.AnchorStyles.Right)));
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
93 this.bttnDxt5.Location = new System.Drawing.Point(210, 90);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
94 this.bttnDxt5.Name = "bttnDxt5";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
95 this.bttnDxt5.Size = new System.Drawing.Size(94, 23);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
96 this.bttnDxt5.TabIndex = 2;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
97 this.bttnDxt5.Text = "DXT5";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
98 this.bttnDxt5.Click += new System.EventHandler(this.bttnDxt5_Click);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
99 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
100 // lblMessage
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
101 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
102 this.lblMessage.Location = new System.Drawing.Point(8, 8);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
103 this.lblMessage.Name = "lblMessage";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
104 this.lblMessage.Size = new System.Drawing.Size(296, 72);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
105 this.lblMessage.TabIndex = 5;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 this.lblMessage.Text = "Please select a DXT Compression level to convert the images to.\r\n\r\nInformation on" +
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
107 " DXT levels is available at http://en.wikipedia.org/wiki/S3TC";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
108 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
109 // DXTFormat
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
110 //
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
111 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
112 this.ClientSize = new System.Drawing.Size(316, 121);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
113 this.ControlBox = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
114 this.Controls.Add(this.lblMessage);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
115 this.Controls.Add(this.bttnDxt5);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
116 this.Controls.Add(this.bttnDxt3);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
117 this.Controls.Add(this.bttnDxt1);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
118 this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
119 this.Name = "DXTFormat";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
120 this.ShowInTaskbar = false;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
121 this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
122 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
123 this.Text = "DXTFormat";
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
124 this.ResumeLayout(false);
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
125
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
126 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
127 #endregion
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
128
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
129 private void bttnDxt1_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
130 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
131 ChosenFormat = Converter.DXTType.DXT1;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
132 this.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
133 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
134
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
135 private void bttnDxt3_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
136 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
137 ChosenFormat = Converter.DXTType.DXT3;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
138 this.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
139 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
140
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
141 private void bttnDxt5_Click(object sender, System.EventArgs e)
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
142 {
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
143 ChosenFormat = Converter.DXTType.DXT5;
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 this.Close();
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146 }
a54c09901f4e Initial commit to Mercurial at v1.9.3 - now GPLed!
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
147 }