Ejemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     Watermark.Pic.FilePicture = openFile();
     if (Watermark.Pic.FilePicture != "none")
     {
         Watermark.initSrc(Watermark.Pic.FilePicture, watermacPic);
         Wmred   = new double[Watermark.src.Width, Watermark.src.Height];
         Wmgreen = new double[Watermark.src.Width, Watermark.src.Height];
         Wmblue  = new double[Watermark.src.Width, Watermark.src.Height];
         getValueColor(Wmred, Wmgreen, Wmblue, Watermark.src);
     }
 }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            original.Pic.FilePicture = openFile();
            if (original.Pic.FilePicture != "none")
            {
                original.initSrc(original.Pic.FilePicture, OriginalPic);
                Hostred   = new double[original.src.Width, original.src.Height];
                Hostgreen = new double[original.src.Width, original.src.Height];
                Hostblue  = new double[original.src.Width, original.src.Height];
                getValueColor(Hostred, Hostgreen, Hostblue, original.src);
                String filename = Environment.CurrentDirectory.ToString() + "\\Matriks\\HostRed.txt";
                writeFile.sendToFile(Hostred, filename);
                filename = Environment.CurrentDirectory.ToString() + "\\Matriks\\HostGreen.txt";
                writeFile.sendToFile(Hostgreen, filename);
                filename = Environment.CurrentDirectory.ToString() + "\\Matriks\\HostBlue.txt";
                writeFile.sendToFile(Hostblue, filename);
            }

            //Transform = new rdwt((Image)original.src);
            //Transform.rdwtTransform(original.src);
            //RDWTImage.Image = Transform.bmp.SrcDwt;
        }