Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (parent.clone_ycbcr)
     {
         clone = ImgLoader.YCbCrtoRGB(clone);
         parent.clone_ycbcr = false;
     }
     parent.img_loader.ClearByte(); //in the name of garbage collector
     clone.CopyTo(parent.img_loader.get_byte, 0);
     parent.pictureBox1.Image = parent.img_loader.Razconvert(parent.img_loader.get_byte);
     this.Close();
 }
Beispiel #2
0
 public void trackBar1_Scroll(object sender, EventArgs e)
 {
     if (!(parent.clone_ycbcr))
     {
         parent.clone_ycbcr = !parent.clone_ycbcr;
         clone = ImgLoader.RGBtoYCbCr(clone);
         parent.clone_ycbcr = true;
     }
     parent.img_loader.ClearByte(); //in the name of garbage collector
     clone.CopyTo(parent.img_loader.get_byte, 0);
     parent.img_loader.ChangeBrightness(trackBar1.Value);
     parent.pictureBox1.Image = parent.img_loader.Razconvert(parent.img_loader.get_byte);
 }
Beispiel #3
0
        private void ePICFORMATLoadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                img_loader = new ImgLoader();
                img_loader.LoadAsEF(ofd.FileName);
                pictureBox1.Image             = img_loader.Razconvert(img_loader.get_byte);
                saveToolStripMenuItem.Enabled = true;
                CreateClone();
                clone_ycbcr = false;
            }
        }
Beispiel #4
0
        //TOOLSTRIPS
        //load
        private void loadToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = availableFormats;
            if (ofd.ShowDialog() == DialogResult.OK)
            {
                img_loader = new ImgLoader();
                img_loader.OpenImage(ofd.FileName);
                pictureBox1.Image             = img_loader.Razconvert(img_loader.get_byte);
                saveToolStripMenuItem.Enabled = true;
                foreach (ToolStripMenuItem item in menuStrip1.Items)
                {
                    item.Enabled = true;
                }
                CreateClone();
                clone_ycbcr = false;
            }
        }