Exemplo n.º 1
0
        private void BTN_COLOR_FINDER_Click(object sender, EventArgs e)
        {
            filterBmp = new Bitmap(OFD.FileName);
            filterBmp = new Bitmap(filterBmp);

            MIN = int.Parse(TXT_MIN.Text);
            MAX = int.Parse(TXT_MAX.Text);

            PCT_CANVAS.Image = ColorFinder.Execute(filterBmp, MIN, MAX);
            PCT_CANVAS.Refresh();
        }
Exemplo n.º 2
0
        /// <p>
        /// Recursive method that iterates through the directory files
        /// applying the same process
        /// <p>
        private void ProcessFolder()
        {
            DirectoryInfo dirInfo = Directory.CreateDirectory(info.DirectoryName + @"\PROCESS");

            for (int i = 0; i < fileEntries.Length; i++)
            {
                try
                {
                    filterBmp = new Bitmap(fileEntries[i]);
                    ColorFinder.Execute(filterBmp, MIN, MAX).Save(dirInfo.FullName + @"\000" + i + ".PNG");
                }
                catch (Exception) { }
            }
            MyDelegates.SetControlTextValue(LBL_STAT, "Done");
        }