mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-09 01:52:32 +02:00
858bc33d2d
* (Add) Mutator: Threshold pixels * (Change) Mutator: PyrDownUp - Name to "Big Blur" and add better description of the effect * (Change) Mutator: SmoothMedian - Better description * (Change) Mutator: SmoothGaussian - Better description * (Fix) Tool: Layer Re-Height - When go lower heights the pixels count per layer statistics are lost * (Fix) "Pixel Edit" has the old tooltip text (#14) * (Fix) Readme: Text fixes (#14)
395 lines
20 KiB
C#
395 lines
20 KiB
C#
using UVtools.GUI.Controls;
|
|
|
|
namespace UVtools.GUI.Forms
|
|
{
|
|
partial class FrmMutationThreshold
|
|
{
|
|
/// <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()
|
|
{
|
|
this.components = new System.ComponentModel.Container();
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMutationThreshold));
|
|
this.lbDescription = new System.Windows.Forms.Label();
|
|
this.lbLayerRange = new System.Windows.Forms.Label();
|
|
this.nmLayerRangeStart = new System.Windows.Forms.NumericUpDown();
|
|
this.nmLayerRangeEnd = new System.Windows.Forms.NumericUpDown();
|
|
this.lbLayerRangeTo = new System.Windows.Forms.Label();
|
|
this.cmLayerRange = new System.Windows.Forms.ContextMenuStrip(this.components);
|
|
this.btnLayerRangeAllLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeCurrentLayer = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeBottomLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnLayerRangeNormalLayers = new System.Windows.Forms.ToolStripMenuItem();
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
this.btnMutate = new System.Windows.Forms.Button();
|
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
|
this.cbThresholdType = new System.Windows.Forms.ComboBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.nmThreshold = new System.Windows.Forms.NumericUpDown();
|
|
this.nmMaximum = new System.Windows.Forms.NumericUpDown();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.btnPresetSetPixelsBrightness = new System.Windows.Forms.Button();
|
|
this.btnPresetFreeUse = new System.Windows.Forms.Button();
|
|
this.btnPresetStripAntiAliasing = new System.Windows.Forms.Button();
|
|
this.btnLayerRangeSelect = new UVtools.GUI.Controls.SplitButton();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeStart)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeEnd)).BeginInit();
|
|
this.cmLayerRange.SuspendLayout();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmThreshold)).BeginInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmMaximum)).BeginInit();
|
|
this.groupBox1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// lbDescription
|
|
//
|
|
this.lbDescription.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
|
| System.Windows.Forms.AnchorStyles.Right)));
|
|
this.lbDescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.lbDescription.Location = new System.Drawing.Point(13, 14);
|
|
this.lbDescription.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbDescription.Name = "lbDescription";
|
|
this.lbDescription.Size = new System.Drawing.Size(573, 128);
|
|
this.lbDescription.TabIndex = 0;
|
|
this.lbDescription.Text = "Description";
|
|
//
|
|
// lbLayerRange
|
|
//
|
|
this.lbLayerRange.AutoSize = true;
|
|
this.lbLayerRange.Location = new System.Drawing.Point(13, 150);
|
|
this.lbLayerRange.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbLayerRange.Name = "lbLayerRange";
|
|
this.lbLayerRange.Size = new System.Drawing.Size(97, 20);
|
|
this.lbLayerRange.TabIndex = 9;
|
|
this.lbLayerRange.Text = "Layer range:";
|
|
this.toolTip.SetToolTip(this.lbLayerRange, resources.GetString("lbLayerRange.ToolTip"));
|
|
//
|
|
// nmLayerRangeStart
|
|
//
|
|
this.nmLayerRangeStart.Location = new System.Drawing.Point(118, 147);
|
|
this.nmLayerRangeStart.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmLayerRangeStart.Maximum = new decimal(new int[] {
|
|
100000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmLayerRangeStart.Name = "nmLayerRangeStart";
|
|
this.nmLayerRangeStart.Size = new System.Drawing.Size(120, 26);
|
|
this.nmLayerRangeStart.TabIndex = 0;
|
|
//
|
|
// nmLayerRangeEnd
|
|
//
|
|
this.nmLayerRangeEnd.Location = new System.Drawing.Point(314, 147);
|
|
this.nmLayerRangeEnd.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmLayerRangeEnd.Maximum = new decimal(new int[] {
|
|
100000,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmLayerRangeEnd.Name = "nmLayerRangeEnd";
|
|
this.nmLayerRangeEnd.Size = new System.Drawing.Size(120, 26);
|
|
this.nmLayerRangeEnd.TabIndex = 1;
|
|
//
|
|
// lbLayerRangeTo
|
|
//
|
|
this.lbLayerRangeTo.AutoSize = true;
|
|
this.lbLayerRangeTo.Location = new System.Drawing.Point(275, 150);
|
|
this.lbLayerRangeTo.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.lbLayerRangeTo.Name = "lbLayerRangeTo";
|
|
this.lbLayerRangeTo.Size = new System.Drawing.Size(31, 20);
|
|
this.lbLayerRangeTo.TabIndex = 12;
|
|
this.lbLayerRangeTo.Text = "To:";
|
|
//
|
|
// cmLayerRange
|
|
//
|
|
this.cmLayerRange.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
|
this.btnLayerRangeAllLayers,
|
|
this.btnLayerRangeCurrentLayer,
|
|
this.btnLayerRangeBottomLayers,
|
|
this.btnLayerRangeNormalLayers});
|
|
this.cmLayerRange.Name = "cmLayerRange";
|
|
this.cmLayerRange.Size = new System.Drawing.Size(226, 92);
|
|
//
|
|
// btnLayerRangeAllLayers
|
|
//
|
|
this.btnLayerRangeAllLayers.Name = "btnLayerRangeAllLayers";
|
|
this.btnLayerRangeAllLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.A)));
|
|
this.btnLayerRangeAllLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeAllLayers.Text = "&All Layers";
|
|
this.btnLayerRangeAllLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeCurrentLayer
|
|
//
|
|
this.btnLayerRangeCurrentLayer.Name = "btnLayerRangeCurrentLayer";
|
|
this.btnLayerRangeCurrentLayer.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.C)));
|
|
this.btnLayerRangeCurrentLayer.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeCurrentLayer.Text = "&Current Layer";
|
|
this.btnLayerRangeCurrentLayer.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeBottomLayers
|
|
//
|
|
this.btnLayerRangeBottomLayers.Name = "btnLayerRangeBottomLayers";
|
|
this.btnLayerRangeBottomLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.B)));
|
|
this.btnLayerRangeBottomLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeBottomLayers.Text = "&Bottom Layers";
|
|
this.btnLayerRangeBottomLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeNormalLayers
|
|
//
|
|
this.btnLayerRangeNormalLayers.Name = "btnLayerRangeNormalLayers";
|
|
this.btnLayerRangeNormalLayers.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
|
|
| System.Windows.Forms.Keys.N)));
|
|
this.btnLayerRangeNormalLayers.Size = new System.Drawing.Size(225, 22);
|
|
this.btnLayerRangeNormalLayers.Text = "&Normal Layers";
|
|
this.btnLayerRangeNormalLayers.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnCancel
|
|
//
|
|
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
this.btnCancel.Image = global::UVtools.GUI.Properties.Resources.Cancel_24x24;
|
|
this.btnCancel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnCancel.Location = new System.Drawing.Point(434, 307);
|
|
this.btnCancel.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.btnCancel.Name = "btnCancel";
|
|
this.btnCancel.Size = new System.Drawing.Size(150, 48);
|
|
this.btnCancel.TabIndex = 6;
|
|
this.btnCancel.Text = "&Cancel";
|
|
this.btnCancel.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnCancel.UseVisualStyleBackColor = true;
|
|
this.btnCancel.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnMutate
|
|
//
|
|
this.btnMutate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
|
this.btnMutate.Image = global::UVtools.GUI.Properties.Resources.Ok_24x24;
|
|
this.btnMutate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
|
this.btnMutate.Location = new System.Drawing.Point(276, 307);
|
|
this.btnMutate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.btnMutate.Name = "btnMutate";
|
|
this.btnMutate.Size = new System.Drawing.Size(150, 48);
|
|
this.btnMutate.TabIndex = 5;
|
|
this.btnMutate.Text = "&Mutate";
|
|
this.btnMutate.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
|
|
this.btnMutate.UseVisualStyleBackColor = true;
|
|
this.btnMutate.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// toolTip
|
|
//
|
|
this.toolTip.AutoPopDelay = 32767;
|
|
this.toolTip.InitialDelay = 500;
|
|
this.toolTip.IsBalloon = true;
|
|
this.toolTip.ReshowDelay = 100;
|
|
this.toolTip.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
|
|
this.toolTip.ToolTipTitle = "Information";
|
|
//
|
|
// cbThresholdType
|
|
//
|
|
this.cbThresholdType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
this.cbThresholdType.FormattingEnabled = true;
|
|
this.cbThresholdType.Location = new System.Drawing.Point(446, 181);
|
|
this.cbThresholdType.Name = "cbThresholdType";
|
|
this.cbThresholdType.Size = new System.Drawing.Size(138, 28);
|
|
this.cbThresholdType.TabIndex = 13;
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Location = new System.Drawing.Point(13, 185);
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(83, 20);
|
|
this.label1.TabIndex = 14;
|
|
this.label1.Text = "Threshold:";
|
|
//
|
|
// nmThreshold
|
|
//
|
|
this.nmThreshold.Location = new System.Drawing.Point(118, 182);
|
|
this.nmThreshold.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmThreshold.Maximum = new decimal(new int[] {
|
|
255,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmThreshold.Name = "nmThreshold";
|
|
this.nmThreshold.Size = new System.Drawing.Size(120, 26);
|
|
this.nmThreshold.TabIndex = 15;
|
|
this.nmThreshold.Value = new decimal(new int[] {
|
|
127,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// nmMaximum
|
|
//
|
|
this.nmMaximum.Location = new System.Drawing.Point(314, 182);
|
|
this.nmMaximum.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.nmMaximum.Maximum = new decimal(new int[] {
|
|
255,
|
|
0,
|
|
0,
|
|
0});
|
|
this.nmMaximum.Name = "nmMaximum";
|
|
this.nmMaximum.Size = new System.Drawing.Size(120, 26);
|
|
this.nmMaximum.TabIndex = 17;
|
|
this.nmMaximum.Value = new decimal(new int[] {
|
|
255,
|
|
0,
|
|
0,
|
|
0});
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Location = new System.Drawing.Point(260, 185);
|
|
this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(46, 20);
|
|
this.label2.TabIndex = 16;
|
|
this.label2.Text = "Max.:";
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.btnPresetSetPixelsBrightness);
|
|
this.groupBox1.Controls.Add(this.btnPresetFreeUse);
|
|
this.groupBox1.Controls.Add(this.btnPresetStripAntiAliasing);
|
|
this.groupBox1.Location = new System.Drawing.Point(17, 222);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(567, 77);
|
|
this.groupBox1.TabIndex = 18;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "Presets / Helpers";
|
|
//
|
|
// btnPresetSetPixelsBrightness
|
|
//
|
|
this.btnPresetSetPixelsBrightness.Location = new System.Drawing.Point(338, 25);
|
|
this.btnPresetSetPixelsBrightness.Name = "btnPresetSetPixelsBrightness";
|
|
this.btnPresetSetPixelsBrightness.Size = new System.Drawing.Size(223, 36);
|
|
this.btnPresetSetPixelsBrightness.TabIndex = 2;
|
|
this.btnPresetSetPixelsBrightness.Text = "Set pixels brightness";
|
|
this.btnPresetSetPixelsBrightness.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnPresetFreeUse
|
|
//
|
|
this.btnPresetFreeUse.Location = new System.Drawing.Point(6, 25);
|
|
this.btnPresetFreeUse.Name = "btnPresetFreeUse";
|
|
this.btnPresetFreeUse.Size = new System.Drawing.Size(160, 36);
|
|
this.btnPresetFreeUse.TabIndex = 1;
|
|
this.btnPresetFreeUse.Text = "Free use";
|
|
this.btnPresetFreeUse.UseVisualStyleBackColor = true;
|
|
this.btnPresetFreeUse.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnPresetStripAntiAliasing
|
|
//
|
|
this.btnPresetStripAntiAliasing.Location = new System.Drawing.Point(172, 25);
|
|
this.btnPresetStripAntiAliasing.Name = "btnPresetStripAntiAliasing";
|
|
this.btnPresetStripAntiAliasing.Size = new System.Drawing.Size(160, 36);
|
|
this.btnPresetStripAntiAliasing.TabIndex = 0;
|
|
this.btnPresetStripAntiAliasing.Text = "Strip AntiAliasing";
|
|
this.btnPresetStripAntiAliasing.UseVisualStyleBackColor = true;
|
|
this.btnPresetStripAntiAliasing.Click += new System.EventHandler(this.ItemClicked);
|
|
//
|
|
// btnLayerRangeSelect
|
|
//
|
|
this.btnLayerRangeSelect.Location = new System.Drawing.Point(446, 146);
|
|
this.btnLayerRangeSelect.Menu = this.cmLayerRange;
|
|
this.btnLayerRangeSelect.Name = "btnLayerRangeSelect";
|
|
this.btnLayerRangeSelect.Size = new System.Drawing.Size(138, 26);
|
|
this.btnLayerRangeSelect.TabIndex = 2;
|
|
this.btnLayerRangeSelect.Text = "Select";
|
|
this.btnLayerRangeSelect.UseVisualStyleBackColor = true;
|
|
//
|
|
// FrmMutationThreshold
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.CancelButton = this.btnCancel;
|
|
this.ClientSize = new System.Drawing.Size(599, 369);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.Controls.Add(this.nmMaximum);
|
|
this.Controls.Add(this.label2);
|
|
this.Controls.Add(this.nmThreshold);
|
|
this.Controls.Add(this.label1);
|
|
this.Controls.Add(this.cbThresholdType);
|
|
this.Controls.Add(this.btnLayerRangeSelect);
|
|
this.Controls.Add(this.lbLayerRangeTo);
|
|
this.Controls.Add(this.nmLayerRangeEnd);
|
|
this.Controls.Add(this.nmLayerRangeStart);
|
|
this.Controls.Add(this.lbLayerRange);
|
|
this.Controls.Add(this.btnMutate);
|
|
this.Controls.Add(this.btnCancel);
|
|
this.Controls.Add(this.lbDescription);
|
|
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
this.KeyPreview = true;
|
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
this.MaximizeBox = false;
|
|
this.MinimizeBox = false;
|
|
this.Name = "FrmMutationThreshold";
|
|
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
|
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
this.Text = "Form1";
|
|
this.TopMost = true;
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeStart)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmLayerRangeEnd)).EndInit();
|
|
this.cmLayerRange.ResumeLayout(false);
|
|
((System.ComponentModel.ISupportInitialize)(this.nmThreshold)).EndInit();
|
|
((System.ComponentModel.ISupportInitialize)(this.nmMaximum)).EndInit();
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private System.Windows.Forms.Label lbDescription;
|
|
private System.Windows.Forms.Button btnCancel;
|
|
private System.Windows.Forms.Button btnMutate;
|
|
private System.Windows.Forms.Label lbLayerRange;
|
|
private System.Windows.Forms.NumericUpDown nmLayerRangeStart;
|
|
private System.Windows.Forms.NumericUpDown nmLayerRangeEnd;
|
|
private System.Windows.Forms.Label lbLayerRangeTo;
|
|
private Controls.SplitButton btnLayerRangeSelect;
|
|
private System.Windows.Forms.ContextMenuStrip cmLayerRange;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeAllLayers;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeCurrentLayer;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeBottomLayers;
|
|
private System.Windows.Forms.ToolStripMenuItem btnLayerRangeNormalLayers;
|
|
private System.Windows.Forms.ToolTip toolTip;
|
|
private System.Windows.Forms.ComboBox cbThresholdType;
|
|
private System.Windows.Forms.Label label1;
|
|
private System.Windows.Forms.NumericUpDown nmThreshold;
|
|
private System.Windows.Forms.NumericUpDown nmMaximum;
|
|
private System.Windows.Forms.Label label2;
|
|
private System.Windows.Forms.GroupBox groupBox1;
|
|
private System.Windows.Forms.Button btnPresetStripAntiAliasing;
|
|
private System.Windows.Forms.Button btnPresetSetPixelsBrightness;
|
|
private System.Windows.Forms.Button btnPresetFreeUse;
|
|
}
|
|
} |