Added functioning drawing but with a weird offset
This commit is contained in:
740
Paint_2/Form1.Designer.cs
generated
740
Paint_2/Form1.Designer.cs
generated
@@ -28,41 +28,42 @@
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.tbxProjectName = new System.Windows.Forms.TextBox();
|
||||
this.btnSave = new System.Windows.Forms.Button();
|
||||
this.canvas = new System.Windows.Forms.PictureBox();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.btnSaveCopy = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
|
||||
this.btnResize = new System.Windows.Forms.Button();
|
||||
this.nupHeight = new System.Windows.Forms.NumericUpDown();
|
||||
this.nupWidth = new System.Windows.Forms.NumericUpDown();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.button8 = new System.Windows.Forms.Button();
|
||||
this.button7 = new System.Windows.Forms.Button();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.btnColorHistory4 = new System.Windows.Forms.Button();
|
||||
this.btnColorHistory3 = new System.Windows.Forms.Button();
|
||||
this.btnColorHistory2 = new System.Windows.Forms.Button();
|
||||
this.btnColorHistory1 = new System.Windows.Forms.Button();
|
||||
this.lblSelectedColor = new System.Windows.Forms.Label();
|
||||
this.btnImportImage = new System.Windows.Forms.Button();
|
||||
this.tbxColorHex = new System.Windows.Forms.TextBox();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown4 = new System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown5 = new System.Windows.Forms.NumericUpDown();
|
||||
this.numericUpDown6 = new System.Windows.Forms.NumericUpDown();
|
||||
this.nupRed = new System.Windows.Forms.NumericUpDown();
|
||||
this.nupGreen = new System.Windows.Forms.NumericUpDown();
|
||||
this.nupBlue = new System.Windows.Forms.NumericUpDown();
|
||||
this.nupPencilWidth = new System.Windows.Forms.NumericUpDown();
|
||||
this.label8 = new System.Windows.Forms.Label();
|
||||
this.label9 = new System.Windows.Forms.Label();
|
||||
this.button9 = new System.Windows.Forms.Button();
|
||||
this.button10 = new System.Windows.Forms.Button();
|
||||
this.button11 = new System.Windows.Forms.Button();
|
||||
this.button12 = new System.Windows.Forms.Button();
|
||||
this.button13 = new System.Windows.Forms.Button();
|
||||
this.button15 = new System.Windows.Forms.Button();
|
||||
this.button16 = new System.Windows.Forms.Button();
|
||||
this.button14 = new System.Windows.Forms.Button();
|
||||
this.btnPencil = new System.Windows.Forms.Button();
|
||||
this.btnDotTracer = new System.Windows.Forms.Button();
|
||||
this.btnShapeCreator = new System.Windows.Forms.Button();
|
||||
this.btnSpray = new System.Windows.Forms.Button();
|
||||
this.btnRectangle = new System.Windows.Forms.Button();
|
||||
this.btnCircle = new System.Windows.Forms.Button();
|
||||
this.btnClear = new System.Windows.Forms.Button();
|
||||
this.btnFill = new System.Windows.Forms.Button();
|
||||
this.panel1 = new System.Windows.Forms.Panel();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.label11 = new System.Windows.Forms.Label();
|
||||
this.panel3 = new System.Windows.Forms.Panel();
|
||||
@@ -70,16 +71,17 @@
|
||||
this.panel4 = new System.Windows.Forms.Panel();
|
||||
this.label14 = new System.Windows.Forms.Label();
|
||||
this.panel5 = new System.Windows.Forms.Panel();
|
||||
this.label12 = new System.Windows.Forms.Label();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.button17 = new System.Windows.Forms.Button();
|
||||
this.lblHoveringColor = new System.Windows.Forms.Label();
|
||||
this.label15 = new System.Windows.Forms.Label();
|
||||
this.tmrRefresh = new System.Windows.Forms.Timer(this.components);
|
||||
((System.ComponentModel.ISupportInitialize)(this.canvas)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupHeight)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupWidth)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupRed)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupGreen)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupBlue)).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupPencilWidth)).BeginInit();
|
||||
this.panel1.SuspendLayout();
|
||||
this.panel2.SuspendLayout();
|
||||
this.panel3.SuspendLayout();
|
||||
@@ -92,7 +94,7 @@
|
||||
this.tbxProjectName.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.tbxProjectName.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxProjectName.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.tbxProjectName.Location = new System.Drawing.Point(10, 31);
|
||||
this.tbxProjectName.Location = new System.Drawing.Point(10, 24);
|
||||
this.tbxProjectName.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.tbxProjectName.Name = "tbxProjectName";
|
||||
this.tbxProjectName.Size = new System.Drawing.Size(230, 27);
|
||||
@@ -104,7 +106,7 @@
|
||||
this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnSave.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnSave.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnSave.Location = new System.Drawing.Point(244, 25);
|
||||
this.btnSave.Location = new System.Drawing.Point(244, 18);
|
||||
this.btnSave.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.btnSave.Name = "btnSave";
|
||||
this.btnSave.Size = new System.Drawing.Size(75, 38);
|
||||
@@ -115,83 +117,85 @@
|
||||
// canvas
|
||||
//
|
||||
this.canvas.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.canvas.Location = new System.Drawing.Point(12, 89);
|
||||
this.canvas.Location = new System.Drawing.Point(12, 73);
|
||||
this.canvas.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.canvas.Name = "canvas";
|
||||
this.canvas.Size = new System.Drawing.Size(909, 500);
|
||||
this.canvas.Size = new System.Drawing.Size(909, 527);
|
||||
this.canvas.TabIndex = 2;
|
||||
this.canvas.TabStop = false;
|
||||
this.canvas.MouseDown += new System.Windows.Forms.MouseEventHandler(this.canvas_MouseDown);
|
||||
this.canvas.MouseUp += new System.Windows.Forms.MouseEventHandler(this.canvas_MouseUp);
|
||||
//
|
||||
// button1
|
||||
// btnSaveCopy
|
||||
//
|
||||
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button1.Location = new System.Drawing.Point(323, 25);
|
||||
this.button1.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(156, 38);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Save a copy";
|
||||
this.button1.UseVisualStyleBackColor = false;
|
||||
this.btnSaveCopy.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnSaveCopy.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnSaveCopy.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnSaveCopy.Location = new System.Drawing.Point(323, 18);
|
||||
this.btnSaveCopy.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.btnSaveCopy.Name = "btnSaveCopy";
|
||||
this.btnSaveCopy.Size = new System.Drawing.Size(156, 38);
|
||||
this.btnSaveCopy.TabIndex = 2;
|
||||
this.btnSaveCopy.Text = "Save a copy";
|
||||
this.btnSaveCopy.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(6, 29);
|
||||
this.label1.Location = new System.Drawing.Point(6, 22);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(110, 22);
|
||||
this.label1.TabIndex = 5;
|
||||
this.label1.Text = "Dimensions";
|
||||
//
|
||||
// button2
|
||||
// btnResize
|
||||
//
|
||||
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button2.Location = new System.Drawing.Point(304, 21);
|
||||
this.button2.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(94, 38);
|
||||
this.button2.TabIndex = 3;
|
||||
this.button2.Text = "Resize";
|
||||
this.button2.UseVisualStyleBackColor = false;
|
||||
this.btnResize.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnResize.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnResize.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnResize.Location = new System.Drawing.Point(304, 14);
|
||||
this.btnResize.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.btnResize.Name = "btnResize";
|
||||
this.btnResize.Size = new System.Drawing.Size(94, 38);
|
||||
this.btnResize.TabIndex = 3;
|
||||
this.btnResize.Text = "Resize";
|
||||
this.btnResize.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// numericUpDown2
|
||||
// nupHeight
|
||||
//
|
||||
this.numericUpDown2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown2.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown2.Location = new System.Drawing.Point(213, 29);
|
||||
this.numericUpDown2.Maximum = new decimal(new int[] {
|
||||
this.nupHeight.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupHeight.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupHeight.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupHeight.Location = new System.Drawing.Point(213, 22);
|
||||
this.nupHeight.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown2.Name = "numericUpDown2";
|
||||
this.numericUpDown2.Size = new System.Drawing.Size(86, 23);
|
||||
this.numericUpDown2.TabIndex = 5;
|
||||
this.numericUpDown2.Value = new decimal(new int[] {
|
||||
this.nupHeight.Name = "nupHeight";
|
||||
this.nupHeight.Size = new System.Drawing.Size(86, 23);
|
||||
this.nupHeight.TabIndex = 5;
|
||||
this.nupHeight.Value = new decimal(new int[] {
|
||||
710,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// numericUpDown1
|
||||
// nupWidth
|
||||
//
|
||||
this.numericUpDown1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown1.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown1.Location = new System.Drawing.Point(122, 30);
|
||||
this.numericUpDown1.Maximum = new decimal(new int[] {
|
||||
this.nupWidth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupWidth.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupWidth.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupWidth.Location = new System.Drawing.Point(122, 23);
|
||||
this.nupWidth.Maximum = new decimal(new int[] {
|
||||
10000,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown1.Name = "numericUpDown1";
|
||||
this.numericUpDown1.Size = new System.Drawing.Size(85, 23);
|
||||
this.numericUpDown1.TabIndex = 4;
|
||||
this.numericUpDown1.Value = new decimal(new int[] {
|
||||
this.nupWidth.Name = "nupWidth";
|
||||
this.nupWidth.Size = new System.Drawing.Size(85, 23);
|
||||
this.nupWidth.TabIndex = 4;
|
||||
this.nupWidth.Value = new decimal(new int[] {
|
||||
1100,
|
||||
0,
|
||||
0,
|
||||
@@ -207,83 +211,83 @@
|
||||
this.label5.TabIndex = 9;
|
||||
this.label5.Text = "Set color";
|
||||
//
|
||||
// button8
|
||||
// btnColorHistory4
|
||||
//
|
||||
this.button8.BackColor = System.Drawing.Color.Red;
|
||||
this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button8.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button8.Location = new System.Drawing.Point(107, 45);
|
||||
this.button8.Name = "button8";
|
||||
this.button8.Size = new System.Drawing.Size(25, 25);
|
||||
this.button8.TabIndex = 4;
|
||||
this.button8.UseVisualStyleBackColor = false;
|
||||
this.btnColorHistory4.BackColor = System.Drawing.Color.Red;
|
||||
this.btnColorHistory4.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColorHistory4.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnColorHistory4.Location = new System.Drawing.Point(107, 45);
|
||||
this.btnColorHistory4.Name = "btnColorHistory4";
|
||||
this.btnColorHistory4.Size = new System.Drawing.Size(25, 25);
|
||||
this.btnColorHistory4.TabIndex = 4;
|
||||
this.btnColorHistory4.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button7
|
||||
// btnColorHistory3
|
||||
//
|
||||
this.button7.BackColor = System.Drawing.Color.Red;
|
||||
this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button7.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button7.Location = new System.Drawing.Point(76, 45);
|
||||
this.button7.Name = "button7";
|
||||
this.button7.Size = new System.Drawing.Size(25, 25);
|
||||
this.button7.TabIndex = 3;
|
||||
this.button7.UseVisualStyleBackColor = false;
|
||||
this.btnColorHistory3.BackColor = System.Drawing.Color.Red;
|
||||
this.btnColorHistory3.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColorHistory3.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnColorHistory3.Location = new System.Drawing.Point(76, 45);
|
||||
this.btnColorHistory3.Name = "btnColorHistory3";
|
||||
this.btnColorHistory3.Size = new System.Drawing.Size(25, 25);
|
||||
this.btnColorHistory3.TabIndex = 3;
|
||||
this.btnColorHistory3.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button6
|
||||
// btnColorHistory2
|
||||
//
|
||||
this.button6.BackColor = System.Drawing.Color.Red;
|
||||
this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button6.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button6.Location = new System.Drawing.Point(45, 45);
|
||||
this.button6.Name = "button6";
|
||||
this.button6.Size = new System.Drawing.Size(25, 25);
|
||||
this.button6.TabIndex = 2;
|
||||
this.button6.UseVisualStyleBackColor = false;
|
||||
this.btnColorHistory2.BackColor = System.Drawing.Color.Red;
|
||||
this.btnColorHistory2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColorHistory2.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnColorHistory2.Location = new System.Drawing.Point(45, 45);
|
||||
this.btnColorHistory2.Name = "btnColorHistory2";
|
||||
this.btnColorHistory2.Size = new System.Drawing.Size(25, 25);
|
||||
this.btnColorHistory2.TabIndex = 2;
|
||||
this.btnColorHistory2.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button5
|
||||
// btnColorHistory1
|
||||
//
|
||||
this.button5.BackColor = System.Drawing.Color.Green;
|
||||
this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.button5.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button5.Location = new System.Drawing.Point(14, 45);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(25, 25);
|
||||
this.button5.TabIndex = 0;
|
||||
this.button5.UseVisualStyleBackColor = false;
|
||||
this.btnColorHistory1.BackColor = System.Drawing.Color.Green;
|
||||
this.btnColorHistory1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
|
||||
this.btnColorHistory1.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnColorHistory1.Location = new System.Drawing.Point(14, 45);
|
||||
this.btnColorHistory1.Name = "btnColorHistory1";
|
||||
this.btnColorHistory1.Size = new System.Drawing.Size(25, 25);
|
||||
this.btnColorHistory1.TabIndex = 0;
|
||||
this.btnColorHistory1.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// label2
|
||||
// lblSelectedColor
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(6, 22);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(290, 22);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "Hex:FFFFFF R:255 G:255 B:255";
|
||||
this.lblSelectedColor.AutoSize = true;
|
||||
this.lblSelectedColor.Location = new System.Drawing.Point(6, 22);
|
||||
this.lblSelectedColor.Name = "lblSelectedColor";
|
||||
this.lblSelectedColor.Size = new System.Drawing.Size(290, 22);
|
||||
this.lblSelectedColor.TabIndex = 1;
|
||||
this.lblSelectedColor.Text = "Hex:FFFFFF R:255 G:255 B:255";
|
||||
//
|
||||
// button4
|
||||
// btnImportImage
|
||||
//
|
||||
this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button4.Location = new System.Drawing.Point(750, 606);
|
||||
this.button4.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(171, 48);
|
||||
this.button4.TabIndex = 6;
|
||||
this.button4.Text = "Import Image";
|
||||
this.button4.UseVisualStyleBackColor = false;
|
||||
this.btnImportImage.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnImportImage.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnImportImage.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnImportImage.Location = new System.Drawing.Point(750, 606);
|
||||
this.btnImportImage.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
|
||||
this.btnImportImage.Name = "btnImportImage";
|
||||
this.btnImportImage.Size = new System.Drawing.Size(171, 48);
|
||||
this.btnImportImage.TabIndex = 6;
|
||||
this.btnImportImage.Text = "Import Image";
|
||||
this.btnImportImage.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// textBox1
|
||||
// tbxColorHex
|
||||
//
|
||||
this.textBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.textBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.textBox1.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.textBox1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.textBox1.Location = new System.Drawing.Point(10, 116);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(141, 25);
|
||||
this.textBox1.TabIndex = 10;
|
||||
this.textBox1.Text = "#FFFFFF";
|
||||
this.tbxColorHex.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.tbxColorHex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.tbxColorHex.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.tbxColorHex.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.tbxColorHex.Location = new System.Drawing.Point(10, 116);
|
||||
this.tbxColorHex.Name = "tbxColorHex";
|
||||
this.tbxColorHex.Size = new System.Drawing.Size(141, 25);
|
||||
this.tbxColorHex.TabIndex = 10;
|
||||
this.tbxColorHex.Text = "#FFFFFF";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
@@ -305,86 +309,86 @@
|
||||
this.label7.TabIndex = 12;
|
||||
this.label7.Text = "RGB";
|
||||
//
|
||||
// numericUpDown3
|
||||
// nupRed
|
||||
//
|
||||
this.numericUpDown3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown3.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown3.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.numericUpDown3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown3.Location = new System.Drawing.Point(10, 167);
|
||||
this.numericUpDown3.Maximum = new decimal(new int[] {
|
||||
this.nupRed.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupRed.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupRed.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.nupRed.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupRed.Location = new System.Drawing.Point(10, 167);
|
||||
this.nupRed.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown3.Name = "numericUpDown3";
|
||||
this.numericUpDown3.Size = new System.Drawing.Size(141, 21);
|
||||
this.numericUpDown3.TabIndex = 13;
|
||||
this.numericUpDown3.Value = new decimal(new int[] {
|
||||
this.nupRed.Name = "nupRed";
|
||||
this.nupRed.Size = new System.Drawing.Size(141, 21);
|
||||
this.nupRed.TabIndex = 13;
|
||||
this.nupRed.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// numericUpDown4
|
||||
// nupGreen
|
||||
//
|
||||
this.numericUpDown4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown4.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown4.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.numericUpDown4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown4.Location = new System.Drawing.Point(10, 198);
|
||||
this.numericUpDown4.Maximum = new decimal(new int[] {
|
||||
this.nupGreen.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupGreen.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupGreen.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.nupGreen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupGreen.Location = new System.Drawing.Point(10, 198);
|
||||
this.nupGreen.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown4.Name = "numericUpDown4";
|
||||
this.numericUpDown4.Size = new System.Drawing.Size(141, 21);
|
||||
this.numericUpDown4.TabIndex = 14;
|
||||
this.numericUpDown4.Value = new decimal(new int[] {
|
||||
this.nupGreen.Name = "nupGreen";
|
||||
this.nupGreen.Size = new System.Drawing.Size(141, 21);
|
||||
this.nupGreen.TabIndex = 14;
|
||||
this.nupGreen.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// numericUpDown5
|
||||
// nupBlue
|
||||
//
|
||||
this.numericUpDown5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown5.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown5.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.numericUpDown5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown5.Location = new System.Drawing.Point(10, 229);
|
||||
this.numericUpDown5.Maximum = new decimal(new int[] {
|
||||
this.nupBlue.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupBlue.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupBlue.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.nupBlue.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupBlue.Location = new System.Drawing.Point(10, 229);
|
||||
this.nupBlue.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown5.Name = "numericUpDown5";
|
||||
this.numericUpDown5.Size = new System.Drawing.Size(141, 21);
|
||||
this.numericUpDown5.TabIndex = 15;
|
||||
this.numericUpDown5.Value = new decimal(new int[] {
|
||||
this.nupBlue.Name = "nupBlue";
|
||||
this.nupBlue.Size = new System.Drawing.Size(141, 21);
|
||||
this.nupBlue.TabIndex = 15;
|
||||
this.nupBlue.Value = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
//
|
||||
// numericUpDown6
|
||||
// nupPencilWidth
|
||||
//
|
||||
this.numericUpDown6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.numericUpDown6.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.numericUpDown6.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.numericUpDown6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.numericUpDown6.Location = new System.Drawing.Point(10, 309);
|
||||
this.numericUpDown6.Maximum = new decimal(new int[] {
|
||||
this.nupPencilWidth.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.nupPencilWidth.BorderStyle = System.Windows.Forms.BorderStyle.None;
|
||||
this.nupPencilWidth.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.nupPencilWidth.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.nupPencilWidth.Location = new System.Drawing.Point(10, 309);
|
||||
this.nupPencilWidth.Maximum = new decimal(new int[] {
|
||||
255,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.numericUpDown6.Name = "numericUpDown6";
|
||||
this.numericUpDown6.Size = new System.Drawing.Size(141, 21);
|
||||
this.numericUpDown6.TabIndex = 17;
|
||||
this.numericUpDown6.Value = new decimal(new int[] {
|
||||
255,
|
||||
this.nupPencilWidth.Name = "nupPencilWidth";
|
||||
this.nupPencilWidth.Size = new System.Drawing.Size(141, 21);
|
||||
this.nupPencilWidth.TabIndex = 17;
|
||||
this.nupPencilWidth.Value = new decimal(new int[] {
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
@@ -409,132 +413,122 @@
|
||||
this.label9.TabIndex = 19;
|
||||
this.label9.Text = "Width";
|
||||
//
|
||||
// button9
|
||||
// btnPencil
|
||||
//
|
||||
this.button9.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button9.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button9.Location = new System.Drawing.Point(10, 340);
|
||||
this.button9.Name = "button9";
|
||||
this.button9.Size = new System.Drawing.Size(141, 31);
|
||||
this.button9.TabIndex = 20;
|
||||
this.button9.Text = "Pencil";
|
||||
this.button9.UseVisualStyleBackColor = false;
|
||||
this.btnPencil.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnPencil.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnPencil.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnPencil.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnPencil.Location = new System.Drawing.Point(10, 340);
|
||||
this.btnPencil.Name = "btnPencil";
|
||||
this.btnPencil.Size = new System.Drawing.Size(141, 31);
|
||||
this.btnPencil.TabIndex = 20;
|
||||
this.btnPencil.Text = "Pencil";
|
||||
this.btnPencil.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button10
|
||||
// btnDotTracer
|
||||
//
|
||||
this.button10.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button10.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button10.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button10.Location = new System.Drawing.Point(10, 377);
|
||||
this.button10.Name = "button10";
|
||||
this.button10.Size = new System.Drawing.Size(141, 31);
|
||||
this.button10.TabIndex = 21;
|
||||
this.button10.Text = "Dot tracer";
|
||||
this.button10.UseVisualStyleBackColor = false;
|
||||
this.btnDotTracer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnDotTracer.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnDotTracer.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnDotTracer.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnDotTracer.Location = new System.Drawing.Point(10, 377);
|
||||
this.btnDotTracer.Name = "btnDotTracer";
|
||||
this.btnDotTracer.Size = new System.Drawing.Size(141, 31);
|
||||
this.btnDotTracer.TabIndex = 21;
|
||||
this.btnDotTracer.Text = "Dot tracer";
|
||||
this.btnDotTracer.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button11
|
||||
// btnShapeCreator
|
||||
//
|
||||
this.button11.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button11.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button11.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button11.Location = new System.Drawing.Point(10, 414);
|
||||
this.button11.Name = "button11";
|
||||
this.button11.Size = new System.Drawing.Size(141, 31);
|
||||
this.button11.TabIndex = 22;
|
||||
this.button11.Text = "Shape creator";
|
||||
this.button11.UseVisualStyleBackColor = false;
|
||||
this.btnShapeCreator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnShapeCreator.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnShapeCreator.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnShapeCreator.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnShapeCreator.Location = new System.Drawing.Point(10, 414);
|
||||
this.btnShapeCreator.Name = "btnShapeCreator";
|
||||
this.btnShapeCreator.Size = new System.Drawing.Size(141, 31);
|
||||
this.btnShapeCreator.TabIndex = 22;
|
||||
this.btnShapeCreator.Text = "Shape creator";
|
||||
this.btnShapeCreator.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button12
|
||||
// btnSpray
|
||||
//
|
||||
this.button12.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button12.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button12.Location = new System.Drawing.Point(10, 451);
|
||||
this.button12.Name = "button12";
|
||||
this.button12.Size = new System.Drawing.Size(141, 31);
|
||||
this.button12.TabIndex = 23;
|
||||
this.button12.Text = "Spray";
|
||||
this.button12.UseVisualStyleBackColor = false;
|
||||
this.btnSpray.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnSpray.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnSpray.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnSpray.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnSpray.Location = new System.Drawing.Point(10, 451);
|
||||
this.btnSpray.Name = "btnSpray";
|
||||
this.btnSpray.Size = new System.Drawing.Size(141, 31);
|
||||
this.btnSpray.TabIndex = 23;
|
||||
this.btnSpray.Text = "Spray";
|
||||
this.btnSpray.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button13
|
||||
// btnRectangle
|
||||
//
|
||||
this.button13.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button13.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button13.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button13.Location = new System.Drawing.Point(11, 488);
|
||||
this.button13.Name = "button13";
|
||||
this.button13.Size = new System.Drawing.Size(140, 31);
|
||||
this.button13.TabIndex = 24;
|
||||
this.button13.Text = "Rectangle";
|
||||
this.button13.UseVisualStyleBackColor = false;
|
||||
this.btnRectangle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnRectangle.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnRectangle.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnRectangle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnRectangle.Location = new System.Drawing.Point(11, 488);
|
||||
this.btnRectangle.Name = "btnRectangle";
|
||||
this.btnRectangle.Size = new System.Drawing.Size(140, 31);
|
||||
this.btnRectangle.TabIndex = 24;
|
||||
this.btnRectangle.Text = "Rectangle";
|
||||
this.btnRectangle.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button15
|
||||
// btnCircle
|
||||
//
|
||||
this.button15.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button15.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button15.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button15.Location = new System.Drawing.Point(11, 562);
|
||||
this.button15.Name = "button15";
|
||||
this.button15.Size = new System.Drawing.Size(140, 31);
|
||||
this.button15.TabIndex = 26;
|
||||
this.button15.Text = "Circle";
|
||||
this.button15.UseVisualStyleBackColor = false;
|
||||
this.btnCircle.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnCircle.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnCircle.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnCircle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnCircle.Location = new System.Drawing.Point(11, 562);
|
||||
this.btnCircle.Name = "btnCircle";
|
||||
this.btnCircle.Size = new System.Drawing.Size(140, 31);
|
||||
this.btnCircle.TabIndex = 26;
|
||||
this.btnCircle.Text = "Circle";
|
||||
this.btnCircle.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button16
|
||||
// btnClear
|
||||
//
|
||||
this.button16.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button16.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button16.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button16.Location = new System.Drawing.Point(10, 599);
|
||||
this.button16.Name = "button16";
|
||||
this.button16.Size = new System.Drawing.Size(141, 31);
|
||||
this.button16.TabIndex = 27;
|
||||
this.button16.Text = "Clear";
|
||||
this.button16.UseVisualStyleBackColor = false;
|
||||
this.btnClear.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnClear.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnClear.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnClear.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnClear.Location = new System.Drawing.Point(10, 599);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(141, 31);
|
||||
this.btnClear.TabIndex = 27;
|
||||
this.btnClear.Text = "Clear";
|
||||
this.btnClear.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// button14
|
||||
// btnFill
|
||||
//
|
||||
this.button14.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.button14.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.button14.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.button14.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.button14.Location = new System.Drawing.Point(11, 525);
|
||||
this.button14.Name = "button14";
|
||||
this.button14.Size = new System.Drawing.Size(140, 31);
|
||||
this.button14.TabIndex = 28;
|
||||
this.button14.Text = "Fill";
|
||||
this.button14.UseVisualStyleBackColor = false;
|
||||
this.btnFill.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
this.btnFill.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
|
||||
this.btnFill.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.btnFill.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
this.btnFill.Location = new System.Drawing.Point(11, 525);
|
||||
this.btnFill.Name = "btnFill";
|
||||
this.btnFill.Size = new System.Drawing.Size(140, 31);
|
||||
this.btnFill.TabIndex = 28;
|
||||
this.btnFill.Text = "Fill";
|
||||
this.btnFill.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// panel1
|
||||
//
|
||||
this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.panel1.Controls.Add(this.label10);
|
||||
this.panel1.Controls.Add(this.button1);
|
||||
this.panel1.Controls.Add(this.btnSaveCopy);
|
||||
this.panel1.Controls.Add(this.tbxProjectName);
|
||||
this.panel1.Controls.Add(this.btnSave);
|
||||
this.panel1.Location = new System.Drawing.Point(12, 12);
|
||||
this.panel1.Location = new System.Drawing.Point(12, 7);
|
||||
this.panel1.Name = "panel1";
|
||||
this.panel1.Size = new System.Drawing.Size(493, 71);
|
||||
this.panel1.Size = new System.Drawing.Size(493, 60);
|
||||
this.panel1.TabIndex = 8;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label4.Location = new System.Drawing.Point(10, 25);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(135, 20);
|
||||
this.label4.TabIndex = 1;
|
||||
this.label4.Text = "Colors history";
|
||||
//
|
||||
// label10
|
||||
//
|
||||
this.label10.AutoSize = true;
|
||||
@@ -545,17 +539,27 @@
|
||||
this.label10.TabIndex = 29;
|
||||
this.label10.Text = "File";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Font = new System.Drawing.Font("Cascadia Code", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label4.Location = new System.Drawing.Point(10, 25);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(135, 20);
|
||||
this.label4.TabIndex = 1;
|
||||
this.label4.Text = "Colors history";
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.panel2.Controls.Add(this.label1);
|
||||
this.panel2.Controls.Add(this.button2);
|
||||
this.panel2.Controls.Add(this.btnResize);
|
||||
this.panel2.Controls.Add(this.label11);
|
||||
this.panel2.Controls.Add(this.numericUpDown2);
|
||||
this.panel2.Controls.Add(this.numericUpDown1);
|
||||
this.panel2.Location = new System.Drawing.Point(510, 12);
|
||||
this.panel2.Controls.Add(this.nupHeight);
|
||||
this.panel2.Controls.Add(this.nupWidth);
|
||||
this.panel2.Location = new System.Drawing.Point(511, 7);
|
||||
this.panel2.Name = "panel2";
|
||||
this.panel2.Size = new System.Drawing.Size(410, 71);
|
||||
this.panel2.Size = new System.Drawing.Size(410, 60);
|
||||
this.panel2.TabIndex = 30;
|
||||
//
|
||||
// label11
|
||||
@@ -571,30 +575,30 @@
|
||||
// panel3
|
||||
//
|
||||
this.panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.panel3.Controls.Add(this.button14);
|
||||
this.panel3.Controls.Add(this.btnFill);
|
||||
this.panel3.Controls.Add(this.label13);
|
||||
this.panel3.Controls.Add(this.button16);
|
||||
this.panel3.Controls.Add(this.textBox1);
|
||||
this.panel3.Controls.Add(this.button15);
|
||||
this.panel3.Controls.Add(this.button5);
|
||||
this.panel3.Controls.Add(this.button13);
|
||||
this.panel3.Controls.Add(this.btnClear);
|
||||
this.panel3.Controls.Add(this.tbxColorHex);
|
||||
this.panel3.Controls.Add(this.btnCircle);
|
||||
this.panel3.Controls.Add(this.btnColorHistory1);
|
||||
this.panel3.Controls.Add(this.btnRectangle);
|
||||
this.panel3.Controls.Add(this.label4);
|
||||
this.panel3.Controls.Add(this.button12);
|
||||
this.panel3.Controls.Add(this.button6);
|
||||
this.panel3.Controls.Add(this.button11);
|
||||
this.panel3.Controls.Add(this.button7);
|
||||
this.panel3.Controls.Add(this.button10);
|
||||
this.panel3.Controls.Add(this.button8);
|
||||
this.panel3.Controls.Add(this.button9);
|
||||
this.panel3.Controls.Add(this.btnSpray);
|
||||
this.panel3.Controls.Add(this.btnColorHistory2);
|
||||
this.panel3.Controls.Add(this.btnShapeCreator);
|
||||
this.panel3.Controls.Add(this.btnColorHistory3);
|
||||
this.panel3.Controls.Add(this.btnDotTracer);
|
||||
this.panel3.Controls.Add(this.btnColorHistory4);
|
||||
this.panel3.Controls.Add(this.btnPencil);
|
||||
this.panel3.Controls.Add(this.label5);
|
||||
this.panel3.Controls.Add(this.label9);
|
||||
this.panel3.Controls.Add(this.label6);
|
||||
this.panel3.Controls.Add(this.label8);
|
||||
this.panel3.Controls.Add(this.label7);
|
||||
this.panel3.Controls.Add(this.numericUpDown6);
|
||||
this.panel3.Controls.Add(this.numericUpDown3);
|
||||
this.panel3.Controls.Add(this.numericUpDown5);
|
||||
this.panel3.Controls.Add(this.numericUpDown4);
|
||||
this.panel3.Controls.Add(this.nupPencilWidth);
|
||||
this.panel3.Controls.Add(this.nupRed);
|
||||
this.panel3.Controls.Add(this.nupBlue);
|
||||
this.panel3.Controls.Add(this.nupGreen);
|
||||
this.panel3.Location = new System.Drawing.Point(926, 12);
|
||||
this.panel3.Name = "panel3";
|
||||
this.panel3.Size = new System.Drawing.Size(163, 642);
|
||||
@@ -613,9 +617,9 @@
|
||||
// panel4
|
||||
//
|
||||
this.panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.panel4.Controls.Add(this.label2);
|
||||
this.panel4.Controls.Add(this.lblSelectedColor);
|
||||
this.panel4.Controls.Add(this.label14);
|
||||
this.panel4.Location = new System.Drawing.Point(426, 604);
|
||||
this.panel4.Location = new System.Drawing.Point(426, 606);
|
||||
this.panel4.Name = "panel4";
|
||||
this.panel4.Size = new System.Drawing.Size(319, 50);
|
||||
this.panel4.TabIndex = 31;
|
||||
@@ -634,32 +638,13 @@
|
||||
//
|
||||
this.panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(31)))), ((int)(((byte)(31)))));
|
||||
this.panel5.Controls.Add(this.button17);
|
||||
this.panel5.Controls.Add(this.label12);
|
||||
this.panel5.Controls.Add(this.lblHoveringColor);
|
||||
this.panel5.Controls.Add(this.label15);
|
||||
this.panel5.Location = new System.Drawing.Point(12, 604);
|
||||
this.panel5.Location = new System.Drawing.Point(12, 606);
|
||||
this.panel5.Name = "panel5";
|
||||
this.panel5.Size = new System.Drawing.Size(408, 50);
|
||||
this.panel5.TabIndex = 32;
|
||||
//
|
||||
// label12
|
||||
//
|
||||
this.label12.AutoSize = true;
|
||||
this.label12.Location = new System.Drawing.Point(6, 22);
|
||||
this.label12.Name = "label12";
|
||||
this.label12.Size = new System.Drawing.Size(290, 22);
|
||||
this.label12.TabIndex = 1;
|
||||
this.label12.Text = "Hex:FFFFFF R:255 G:255 B:255";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Font = new System.Drawing.Font("Cascadia Code", 10F);
|
||||
this.label15.Location = new System.Drawing.Point(6, 0);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(150, 22);
|
||||
this.label15.TabIndex = 29;
|
||||
this.label15.Text = "Hovering color";
|
||||
//
|
||||
// button17
|
||||
//
|
||||
this.button17.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(41)))), ((int)(((byte)(41)))), ((int)(((byte)(41)))));
|
||||
@@ -674,6 +659,30 @@
|
||||
this.button17.Text = "Select";
|
||||
this.button17.UseVisualStyleBackColor = false;
|
||||
//
|
||||
// lblHoveringColor
|
||||
//
|
||||
this.lblHoveringColor.AutoSize = true;
|
||||
this.lblHoveringColor.Location = new System.Drawing.Point(6, 22);
|
||||
this.lblHoveringColor.Name = "lblHoveringColor";
|
||||
this.lblHoveringColor.Size = new System.Drawing.Size(290, 22);
|
||||
this.lblHoveringColor.TabIndex = 1;
|
||||
this.lblHoveringColor.Text = "Hex:FFFFFF R:255 G:255 B:255";
|
||||
//
|
||||
// label15
|
||||
//
|
||||
this.label15.AutoSize = true;
|
||||
this.label15.Font = new System.Drawing.Font("Cascadia Code", 10F);
|
||||
this.label15.Location = new System.Drawing.Point(6, 0);
|
||||
this.label15.Name = "label15";
|
||||
this.label15.Size = new System.Drawing.Size(150, 22);
|
||||
this.label15.TabIndex = 29;
|
||||
this.label15.Text = "Hovering color";
|
||||
//
|
||||
// tmrRefresh
|
||||
//
|
||||
this.tmrRefresh.Interval = 1;
|
||||
this.tmrRefresh.Tick += new System.EventHandler(this.tmrRefresh_Tick);
|
||||
//
|
||||
// PaintForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F);
|
||||
@@ -685,7 +694,7 @@
|
||||
this.Controls.Add(this.panel3);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.panel1);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.btnImportImage);
|
||||
this.Controls.Add(this.canvas);
|
||||
this.Font = new System.Drawing.Font("Cascadia Code", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(214)))), ((int)(((byte)(214)))));
|
||||
@@ -693,12 +702,12 @@
|
||||
this.Name = "PaintForm";
|
||||
this.Text = "Paint 2";
|
||||
((System.ComponentModel.ISupportInitialize)(this.canvas)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown4)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown5)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.numericUpDown6)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupHeight)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupWidth)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupRed)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupGreen)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupBlue)).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nupPencilWidth)).EndInit();
|
||||
this.panel1.ResumeLayout(false);
|
||||
this.panel1.PerformLayout();
|
||||
this.panel2.ResumeLayout(false);
|
||||
@@ -718,35 +727,35 @@
|
||||
private System.Windows.Forms.TextBox tbxProjectName;
|
||||
private System.Windows.Forms.Button btnSave;
|
||||
private System.Windows.Forms.PictureBox canvas;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button btnSaveCopy;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown2;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown1;
|
||||
private System.Windows.Forms.Button button8;
|
||||
private System.Windows.Forms.Button button7;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button btnResize;
|
||||
private System.Windows.Forms.NumericUpDown nupHeight;
|
||||
private System.Windows.Forms.NumericUpDown nupWidth;
|
||||
private System.Windows.Forms.Button btnColorHistory4;
|
||||
private System.Windows.Forms.Button btnColorHistory3;
|
||||
private System.Windows.Forms.Button btnColorHistory2;
|
||||
private System.Windows.Forms.Button btnColorHistory1;
|
||||
private System.Windows.Forms.Label lblSelectedColor;
|
||||
private System.Windows.Forms.Button btnImportImage;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Button button16;
|
||||
private System.Windows.Forms.Button button15;
|
||||
private System.Windows.Forms.Button button13;
|
||||
private System.Windows.Forms.Button button12;
|
||||
private System.Windows.Forms.Button button11;
|
||||
private System.Windows.Forms.Button button10;
|
||||
private System.Windows.Forms.Button button9;
|
||||
private System.Windows.Forms.Button btnClear;
|
||||
private System.Windows.Forms.Button btnCircle;
|
||||
private System.Windows.Forms.Button btnRectangle;
|
||||
private System.Windows.Forms.Button btnSpray;
|
||||
private System.Windows.Forms.Button btnShapeCreator;
|
||||
private System.Windows.Forms.Button btnDotTracer;
|
||||
private System.Windows.Forms.Button btnPencil;
|
||||
private System.Windows.Forms.Label label9;
|
||||
private System.Windows.Forms.Label label8;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown6;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown5;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown4;
|
||||
private System.Windows.Forms.NumericUpDown numericUpDown3;
|
||||
private System.Windows.Forms.NumericUpDown nupPencilWidth;
|
||||
private System.Windows.Forms.NumericUpDown nupBlue;
|
||||
private System.Windows.Forms.NumericUpDown nupGreen;
|
||||
private System.Windows.Forms.NumericUpDown nupRed;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.Button button14;
|
||||
private System.Windows.Forms.TextBox tbxColorHex;
|
||||
private System.Windows.Forms.Button btnFill;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Panel panel1;
|
||||
private System.Windows.Forms.Label label10;
|
||||
@@ -758,8 +767,9 @@
|
||||
private System.Windows.Forms.Label label14;
|
||||
private System.Windows.Forms.Panel panel5;
|
||||
private System.Windows.Forms.Button button17;
|
||||
private System.Windows.Forms.Label label12;
|
||||
private System.Windows.Forms.Label lblHoveringColor;
|
||||
private System.Windows.Forms.Label label15;
|
||||
private System.Windows.Forms.Timer tmrRefresh;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
@@ -12,13 +13,54 @@ namespace Paint_2
|
||||
{
|
||||
public partial class PaintForm : Form
|
||||
{
|
||||
Sketch sketch;
|
||||
List<PaintTool> toolList;
|
||||
bool drawing = false;
|
||||
Random rnd;
|
||||
|
||||
int debugCounter = 0;
|
||||
public PaintForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
rnd = new Random();
|
||||
nupWidth.Value = canvas.Width;
|
||||
nupHeight.Value = canvas.Height;
|
||||
toolList = new List<PaintTool>();
|
||||
toolList.Add(new Pencil());
|
||||
toolList.Add(new Pencil());
|
||||
sketch = new Sketch(new Size((int)nupWidth.Value, (int)nupHeight.Value), toolList);
|
||||
canvas.Image = sketch.Drawing;
|
||||
}
|
||||
private Point MousePositionToCanvasPosition()
|
||||
{
|
||||
return new Point(MousePosition.X - canvas.Location.X,MousePosition.Y - canvas.Location.Y);
|
||||
}
|
||||
private void canvas_MouseDown(object sender, MouseEventArgs e)
|
||||
{
|
||||
drawing = true;
|
||||
sketch.StartDrawing(MousePositionToCanvasPosition(), Color.FromArgb(rnd.Next(0,256), rnd.Next(0, 256), rnd.Next(0, 256)), 5);
|
||||
tmrRefresh.Enabled = true;
|
||||
|
||||
//new Thread((sketch) => { (sketch as Sketch).AddDrawingPoint(this.PointToClient(MousePosition)); }).Start();
|
||||
}
|
||||
private void canvas_MouseUp(object sender, MouseEventArgs e)
|
||||
{
|
||||
tmrRefresh.Enabled = false;
|
||||
sketch.AddDrawingPoint(MousePositionToCanvasPosition());
|
||||
sketch.Paint();
|
||||
canvas.Image = sketch.Drawing;
|
||||
drawing = false;
|
||||
}
|
||||
|
||||
private void btnColorPick_Click(object sender, EventArgs e)
|
||||
private void tmrRefresh_Tick(object sender, EventArgs e)
|
||||
{
|
||||
if (drawing)
|
||||
{
|
||||
sketch.AddDrawingPoint(MousePositionToCanvasPosition());
|
||||
sketch.Paint();
|
||||
canvas.Image = sketch.Drawing;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,4 +117,7 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="tmrRefresh.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
23
Paint_2/PaintTool.cs
Normal file
23
Paint_2/PaintTool.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Paint_2
|
||||
{
|
||||
internal interface PaintTool
|
||||
{
|
||||
List<List<Point>> Drawings { get; set; }
|
||||
List<Color> Colors { get; set; }
|
||||
Color Color { get; set; }
|
||||
List<int> Widths { get; set; }
|
||||
int Width { get; set; }
|
||||
|
||||
void Start(Point point,Color color,int width);
|
||||
void Stop(Point point);
|
||||
void Add(Point point);
|
||||
void Paint(Bitmap canvas);
|
||||
}
|
||||
}
|
||||
@@ -52,8 +52,11 @@
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PaintTool.cs" />
|
||||
<Compile Include="Pencil.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Sketch.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
||||
66
Paint_2/Pencil.cs
Normal file
66
Paint_2/Pencil.cs
Normal file
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Paint_2
|
||||
{
|
||||
internal class Pencil : PaintTool
|
||||
{
|
||||
private List<List<Point>> _drawings;
|
||||
private List<Color> _colors;
|
||||
private List<int> _widths;
|
||||
private Color _color;
|
||||
private int _width;
|
||||
public List<List<Point>> Drawings { get => _drawings; set => _drawings = value; }
|
||||
public List<Color> Colors { get => _colors; set => _colors = value; }
|
||||
public List<int> Widths { get => _widths; set => _widths = value; }
|
||||
public Color Color { get => _color; set => _color = value; }
|
||||
public int Width { get => _width; set => _width = value; }
|
||||
public Pencil()
|
||||
{
|
||||
Drawings = new List<List<Point>>();
|
||||
Colors = new List<Color>();
|
||||
Widths = new List<int>();
|
||||
}
|
||||
public void Add(Point point)
|
||||
{
|
||||
Drawings[Drawings.Count -1].Add(point);
|
||||
}
|
||||
public void Paint(Bitmap canvas)
|
||||
{
|
||||
Graphics gr = Graphics.FromImage(canvas);
|
||||
int drawingCounter = 0;
|
||||
foreach (List<Point> drawing in Drawings)
|
||||
{
|
||||
int pointCounter = 0;
|
||||
foreach (Point p in drawing)
|
||||
{
|
||||
if (pointCounter > 0)
|
||||
{
|
||||
gr.DrawLine(new Pen(Colors[drawingCounter],Widths[drawingCounter]),drawing[pointCounter -1],p);
|
||||
}
|
||||
|
||||
pointCounter += 1;
|
||||
}
|
||||
drawingCounter += 1;
|
||||
}
|
||||
}
|
||||
public void Start(Point point, Color color, int width)
|
||||
{
|
||||
Color = color;
|
||||
Width = width;
|
||||
List<Point> points = new List<Point>();
|
||||
points.Add(point);
|
||||
Drawings.Add(points);
|
||||
Colors.Add(Color);
|
||||
Widths.Add(Width);
|
||||
}
|
||||
public void Stop(Point point)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
72
Paint_2/Sketch.cs
Normal file
72
Paint_2/Sketch.cs
Normal file
@@ -0,0 +1,72 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Drawing;
|
||||
|
||||
namespace Paint_2
|
||||
{
|
||||
internal class Sketch
|
||||
{
|
||||
List<PaintTool> _toolList;
|
||||
PaintTool _currentTool;
|
||||
Color _currentColor;
|
||||
bool _isDrawing;
|
||||
Bitmap _drawing;
|
||||
Size _sketchSize;
|
||||
string _name;
|
||||
internal List<PaintTool> ToolList { get => _toolList; set => _toolList = value; }
|
||||
public PaintTool CurrentTool { get => _currentTool; set => _currentTool = value; }
|
||||
public Color CurrentColor { get => _currentColor; set => _currentColor = value; }
|
||||
public bool IsDrawing { get => _isDrawing; set => _isDrawing = value; }
|
||||
public Bitmap Drawing { get => _drawing; set => _drawing = value; }
|
||||
public Size SketchSize { get => _sketchSize; set => _sketchSize = value; }
|
||||
public string Name { get => _name; set => _name = value; }
|
||||
|
||||
public Sketch(Size sketchSize,List<PaintTool> toolList)
|
||||
{
|
||||
|
||||
CurrentColor = Color.FromArgb(0xFF, 0xFF, 0xFF);
|
||||
IsDrawing = false;
|
||||
Drawing = new Bitmap(sketchSize.Width, sketchSize.Height);
|
||||
ToolList = toolList;
|
||||
if (toolList[0] != null)
|
||||
{
|
||||
CurrentTool = toolList[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
CurrentTool = null;
|
||||
}
|
||||
}
|
||||
public Sketch(List<PaintTool> toolList) : this(new Size(500, 500),toolList)
|
||||
{
|
||||
//empty
|
||||
}
|
||||
public void StartDrawing(Point location,Color color,int width)
|
||||
{
|
||||
CurrentTool.Start(location,color,width);
|
||||
}
|
||||
public void StopDrawing(Point location)
|
||||
{
|
||||
CurrentTool.Stop(location);
|
||||
}
|
||||
public void AddDrawingPoint(Point location)
|
||||
{
|
||||
CurrentTool.Add(location);
|
||||
}
|
||||
public void Paint()
|
||||
{
|
||||
foreach (PaintTool tool in ToolList)
|
||||
{
|
||||
tool.Paint(Drawing);
|
||||
}
|
||||
}
|
||||
public Color GetColor(Point location)
|
||||
{
|
||||
//Todo
|
||||
return Color.FromArgb(0x34,0xF4,0xFF);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user