Files
McBitFont/McBitFont/ImageImporter.Designer.cs

423 lines
19 KiB
C#

namespace McBitFont {
partial class ImageImporter {
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing) {
if (disposing && (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() {
components = new System.ComponentModel.Container();
btnOK = new System.Windows.Forms.Button();
btnCancel = new System.Windows.Forms.Button();
pbOriginal = new System.Windows.Forms.PictureBox();
pbProcessed = new System.Windows.Forms.PictureBox();
btnLoadImage = new System.Windows.Forms.Button();
dlgLoadImage = new System.Windows.Forms.OpenFileDialog();
pbScaled = new System.Windows.Forms.PictureBox();
btnConvert = new System.Windows.Forms.Button();
tbPixelization = new System.Windows.Forms.TrackBar();
lblPixelization = new System.Windows.Forms.Label();
lblThreshold = new System.Windows.Forms.Label();
tbThreshold = new System.Windows.Forms.TrackBar();
lblWhite = new System.Windows.Forms.Label();
lblBlack = new System.Windows.Forms.Label();
btnResize = new System.Windows.Forms.Button();
lblOrigSize = new System.Windows.Forms.Label();
lblProcessedSize = new System.Windows.Forms.Label();
lblScaledSize = new System.Windows.Forms.Label();
label1 = new System.Windows.Forms.Label();
label2 = new System.Windows.Forms.Label();
label3 = new System.Windows.Forms.Label();
label4 = new System.Windows.Forms.Label();
lblTransparency = new System.Windows.Forms.Label();
tbTransparency = new System.Windows.Forms.TrackBar();
toolTip1 = new System.Windows.Forms.ToolTip(components);
label5 = new System.Windows.Forms.Label();
label6 = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)pbOriginal).BeginInit();
((System.ComponentModel.ISupportInitialize)pbProcessed).BeginInit();
((System.ComponentModel.ISupportInitialize)pbScaled).BeginInit();
((System.ComponentModel.ISupportInitialize)tbPixelization).BeginInit();
((System.ComponentModel.ISupportInitialize)tbThreshold).BeginInit();
((System.ComponentModel.ISupportInitialize)tbTransparency).BeginInit();
SuspendLayout();
//
// btnOK
//
btnOK.Enabled = false;
btnOK.Location = new System.Drawing.Point(171, 345);
btnOK.Name = "btnOK";
btnOK.Size = new System.Drawing.Size(88, 27);
btnOK.TabIndex = 0;
btnOK.Text = "OK";
btnOK.UseVisualStyleBackColor = true;
btnOK.Click += btnOK_Click;
//
// btnCancel
//
btnCancel.Location = new System.Drawing.Point(377, 345);
btnCancel.Name = "btnCancel";
btnCancel.Size = new System.Drawing.Size(88, 27);
btnCancel.TabIndex = 1;
btnCancel.Text = "Cancel";
btnCancel.UseVisualStyleBackColor = true;
btnCancel.Click += btnCancel_Click;
//
// pbOriginal
//
pbOriginal.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
pbOriginal.Location = new System.Drawing.Point(12, 27);
pbOriginal.Name = "pbOriginal";
pbOriginal.Size = new System.Drawing.Size(200, 200);
pbOriginal.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
pbOriginal.TabIndex = 2;
pbOriginal.TabStop = false;
//
// pbProcessed
//
pbProcessed.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
pbProcessed.Location = new System.Drawing.Point(218, 27);
pbProcessed.Name = "pbProcessed";
pbProcessed.Size = new System.Drawing.Size(200, 200);
pbProcessed.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
pbProcessed.TabIndex = 3;
pbProcessed.TabStop = false;
//
// btnLoadImage
//
btnLoadImage.Image = Properties.Resources.folder_open;
btnLoadImage.Location = new System.Drawing.Point(57, 233);
btnLoadImage.Name = "btnLoadImage";
btnLoadImage.Size = new System.Drawing.Size(110, 27);
btnLoadImage.TabIndex = 4;
btnLoadImage.Text = " Load Image";
btnLoadImage.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnLoadImage.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
toolTip1.SetToolTip(btnLoadImage, "Load image from a file");
btnLoadImage.UseVisualStyleBackColor = true;
btnLoadImage.Click += btnLoadImage_Click;
//
// dlgLoadImage
//
dlgLoadImage.AddExtension = false;
dlgLoadImage.Filter = "Images|*.bmp;*.png;*.gif;*.jpg;*.jpeg|All files|*.*";
dlgLoadImage.ShowPreview = true;
//
// pbScaled
//
pbScaled.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
pbScaled.Location = new System.Drawing.Point(424, 27);
pbScaled.Name = "pbScaled";
pbScaled.Size = new System.Drawing.Size(200, 200);
pbScaled.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
pbScaled.TabIndex = 5;
pbScaled.TabStop = false;
//
// btnConvert
//
btnConvert.Enabled = false;
btnConvert.Image = Properties.Resources.calculator;
btnConvert.Location = new System.Drawing.Point(263, 233);
btnConvert.Name = "btnConvert";
btnConvert.Size = new System.Drawing.Size(110, 27);
btnConvert.TabIndex = 6;
btnConvert.Text = " Convert";
btnConvert.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnConvert.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
toolTip1.SetToolTip(btnConvert, "Convert image to pixelated black and white");
btnConvert.UseVisualStyleBackColor = true;
btnConvert.Click += btnConvert_Click;
//
// tbPixelization
//
tbPixelization.AutoSize = false;
tbPixelization.Cursor = System.Windows.Forms.Cursors.SizeWE;
tbPixelization.LargeChange = 2;
tbPixelization.Location = new System.Drawing.Point(39, 296);
tbPixelization.Maximum = 25;
tbPixelization.Minimum = 1;
tbPixelization.Name = "tbPixelization";
tbPixelization.Size = new System.Drawing.Size(128, 32);
tbPixelization.TabIndex = 7;
toolTip1.SetToolTip(tbPixelization, "Pixelization level. Higher value makes bigger pixels during conversion");
tbPixelization.Value = 1;
tbPixelization.ValueChanged += tbPixelization_ValueChanged;
tbPixelization.KeyDown += tbPixelization_KeyDown;
//
// lblPixelization
//
lblPixelization.Location = new System.Drawing.Point(39, 323);
lblPixelization.Name = "lblPixelization";
lblPixelization.Size = new System.Drawing.Size(128, 15);
lblPixelization.TabIndex = 8;
lblPixelization.Text = "Pixelization: 1";
lblPixelization.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lblThreshold
//
lblThreshold.Location = new System.Drawing.Point(263, 323);
lblThreshold.Name = "lblThreshold";
lblThreshold.Size = new System.Drawing.Size(110, 15);
lblThreshold.TabIndex = 10;
lblThreshold.Text = "Threshold: 0";
lblThreshold.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbThreshold
//
tbThreshold.AutoSize = false;
tbThreshold.Cursor = System.Windows.Forms.Cursors.SizeWE;
tbThreshold.LargeChange = 10;
tbThreshold.Location = new System.Drawing.Point(254, 296);
tbThreshold.Maximum = 127;
tbThreshold.Minimum = -128;
tbThreshold.Name = "tbThreshold";
tbThreshold.Size = new System.Drawing.Size(128, 32);
tbThreshold.TabIndex = 9;
tbThreshold.TickFrequency = 8;
toolTip1.SetToolTip(tbThreshold, "Black / White conversion threshold");
tbThreshold.ValueChanged += tbThreshold_ValueChanged;
tbThreshold.KeyDown += tbThreshold_KeyDown;
//
// lblWhite
//
lblWhite.AutoSize = true;
lblWhite.Location = new System.Drawing.Point(221, 282);
lblWhite.Name = "lblWhite";
lblWhite.Size = new System.Drawing.Size(67, 15);
lblWhite.TabIndex = 11;
lblWhite.Text = "More white";
lblWhite.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// lblBlack
//
lblBlack.AutoSize = true;
lblBlack.Location = new System.Drawing.Point(349, 282);
lblBlack.Name = "lblBlack";
lblBlack.Size = new System.Drawing.Size(66, 15);
lblBlack.TabIndex = 12;
lblBlack.Text = "More black";
//
// btnResize
//
btnResize.Enabled = false;
btnResize.Image = Properties.Resources.arrow_inout;
btnResize.Location = new System.Drawing.Point(464, 233);
btnResize.Name = "btnResize";
btnResize.Size = new System.Drawing.Size(120, 27);
btnResize.TabIndex = 13;
btnResize.Text = " Resize to frame";
btnResize.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
btnResize.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
toolTip1.SetToolTip(btnResize, "Resize converted image to fit the current frame");
btnResize.UseVisualStyleBackColor = true;
btnResize.Click += btnResize_Click;
//
// lblOrigSize
//
lblOrigSize.AutoSize = true;
lblOrigSize.Location = new System.Drawing.Point(12, 9);
lblOrigSize.Name = "lblOrigSize";
lblOrigSize.Size = new System.Drawing.Size(30, 15);
lblOrigSize.TabIndex = 14;
lblOrigSize.Text = "0 x 0";
//
// lblProcessedSize
//
lblProcessedSize.AutoSize = true;
lblProcessedSize.Location = new System.Drawing.Point(218, 9);
lblProcessedSize.Name = "lblProcessedSize";
lblProcessedSize.Size = new System.Drawing.Size(30, 15);
lblProcessedSize.TabIndex = 15;
lblProcessedSize.Text = "0 x 0";
//
// lblScaledSize
//
lblScaledSize.AutoSize = true;
lblScaledSize.Location = new System.Drawing.Point(424, 9);
lblScaledSize.Name = "lblScaledSize";
lblScaledSize.Size = new System.Drawing.Size(30, 15);
lblScaledSize.TabIndex = 16;
lblScaledSize.Text = "0 x 0";
//
// label1
//
label1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
label1.Location = new System.Drawing.Point(6, 279);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(209, 2);
label1.TabIndex = 17;
//
// label2
//
label2.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
label2.Location = new System.Drawing.Point(421, 279);
label2.Name = "label2";
label2.Size = new System.Drawing.Size(209, 2);
label2.TabIndex = 18;
//
// label3
//
label3.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
label3.Location = new System.Drawing.Point(421, 230);
label3.Name = "label3";
label3.Size = new System.Drawing.Size(2, 51);
label3.TabIndex = 19;
//
// label4
//
label4.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
label4.Location = new System.Drawing.Point(215, 230);
label4.Name = "label4";
label4.Size = new System.Drawing.Size(2, 51);
label4.TabIndex = 20;
//
// lblTransparency
//
lblTransparency.Location = new System.Drawing.Point(438, 323);
lblTransparency.Name = "lblTransparency";
lblTransparency.Size = new System.Drawing.Size(184, 15);
lblTransparency.TabIndex = 22;
lblTransparency.Text = "Transparency threshold: 32";
lblTransparency.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// tbTransparency
//
tbTransparency.AutoSize = false;
tbTransparency.Cursor = System.Windows.Forms.Cursors.SizeWE;
tbTransparency.LargeChange = 16;
tbTransparency.Location = new System.Drawing.Point(464, 296);
tbTransparency.Maximum = 255;
tbTransparency.Name = "tbTransparency";
tbTransparency.Size = new System.Drawing.Size(128, 32);
tbTransparency.SmallChange = 4;
tbTransparency.TabIndex = 21;
tbTransparency.TickFrequency = 8;
toolTip1.SetToolTip(tbTransparency, "Transparency threshold. Higher value makes more white");
tbTransparency.Value = 4;
tbTransparency.ValueChanged += tbTransparency_ValueChanged;
tbTransparency.KeyDown += tbTransparency_KeyDown;
//
// toolTip1
//
toolTip1.AutoPopDelay = 10000;
toolTip1.InitialDelay = 500;
toolTip1.ReshowDelay = 100;
//
// label5
//
label5.AutoSize = true;
label5.Location = new System.Drawing.Point(438, 282);
label5.Name = "label5";
label5.Size = new System.Drawing.Size(66, 15);
label5.TabIndex = 24;
label5.Text = "More black";
//
// label6
//
label6.AutoSize = true;
label6.Location = new System.Drawing.Point(555, 282);
label6.Name = "label6";
label6.Size = new System.Drawing.Size(67, 15);
label6.TabIndex = 23;
label6.Text = "More white";
label6.TextAlign = System.Drawing.ContentAlignment.TopRight;
//
// ImageImporter
//
AcceptButton = btnOK;
AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
CancelButton = btnCancel;
ClientSize = new System.Drawing.Size(634, 381);
Controls.Add(label5);
Controls.Add(label6);
Controls.Add(lblTransparency);
Controls.Add(tbTransparency);
Controls.Add(label4);
Controls.Add(label3);
Controls.Add(label2);
Controls.Add(label1);
Controls.Add(lblScaledSize);
Controls.Add(lblProcessedSize);
Controls.Add(lblOrigSize);
Controls.Add(btnResize);
Controls.Add(lblBlack);
Controls.Add(lblWhite);
Controls.Add(lblThreshold);
Controls.Add(tbThreshold);
Controls.Add(lblPixelization);
Controls.Add(tbPixelization);
Controls.Add(btnConvert);
Controls.Add(pbScaled);
Controls.Add(btnLoadImage);
Controls.Add(pbProcessed);
Controls.Add(pbOriginal);
Controls.Add(btnCancel);
Controls.Add(btnOK);
FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
MaximizeBox = false;
MinimizeBox = false;
Name = "ImageImporter";
ShowIcon = false;
ShowInTaskbar = false;
StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
Text = "Import Image";
Paint += ImageImporter_Paint;
((System.ComponentModel.ISupportInitialize)pbOriginal).EndInit();
((System.ComponentModel.ISupportInitialize)pbProcessed).EndInit();
((System.ComponentModel.ISupportInitialize)pbScaled).EndInit();
((System.ComponentModel.ISupportInitialize)tbPixelization).EndInit();
((System.ComponentModel.ISupportInitialize)tbThreshold).EndInit();
((System.ComponentModel.ISupportInitialize)tbTransparency).EndInit();
ResumeLayout(false);
PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnOK;
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.PictureBox pbOriginal;
private System.Windows.Forms.PictureBox pbProcessed;
private System.Windows.Forms.Button btnLoadImage;
private System.Windows.Forms.OpenFileDialog dlgLoadImage;
private System.Windows.Forms.PictureBox pbScaled;
private System.Windows.Forms.Button btnConvert;
private System.Windows.Forms.TrackBar tbPixelization;
private System.Windows.Forms.Label lblPixelization;
private System.Windows.Forms.Label lblThreshold;
private System.Windows.Forms.TrackBar tbThreshold;
private System.Windows.Forms.Label lblWhite;
private System.Windows.Forms.Label lblBlack;
private System.Windows.Forms.Button btnResize;
private System.Windows.Forms.Label lblOrigSize;
private System.Windows.Forms.Label lblProcessedSize;
private System.Windows.Forms.Label lblScaledSize;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label lblTransparency;
private System.Windows.Forms.TrackBar tbTransparency;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
}
}