From a35afc3aa197e52db883e5bb91f54bd124268a1f Mon Sep 17 00:00:00 2001 From: citizen Date: Tue, 17 Dec 2019 16:21:46 +0100 Subject: [PATCH] [WIP] encode/decode --- main_form.Designer.cs | 1 + main_form.cs | 93 ++++++++++++++++++++++++++++++++++++++----- 2 files changed, 83 insertions(+), 11 deletions(-) diff --git a/main_form.Designer.cs b/main_form.Designer.cs index a4ea205..aa383da 100644 --- a/main_form.Designer.cs +++ b/main_form.Designer.cs @@ -110,6 +110,7 @@ this.button2.TabIndex = 6; this.button2.Text = "get"; this.button2.UseVisualStyleBackColor = true; + this.button2.Click += new System.EventHandler(this.button2_Click); // // pictureBox1 // diff --git a/main_form.cs b/main_form.cs index d22e699..53d9a3f 100644 --- a/main_form.cs +++ b/main_form.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; @@ -21,6 +22,8 @@ namespace KRY_0x02 public int im_h = 0; public int im_w = 0; + public static int cap = 0; + public string path = ""; public string getpath(TextBox t) { @@ -34,27 +37,71 @@ namespace KRY_0x02 a = im_h; b = im_w; c = ((a * b) / 8) - 8; + cap = c; return c; } - //Bitmap my_bitmap = new Bitmap(getpath(textBox1)); - Color pixel; - int int_value; - //for (int i = 0; i