Пример #1
0
 private void menuItem20_Click(object sender, System.EventArgs e)
 {
     try
     {
         Stream iStream = UIToolset.LoadImage(openFileDialog1);
         this.setVariables.filter = new Bitmap(Image.FromStream(iStream));
         iStream.Close();
     }
     catch
     {}
 }
Пример #2
0
 private void menuItem5_Click(object sender, System.EventArgs e)
 {
     try
     {
         Stream iStream = UIToolset.LoadImage(openFileDialog1);
         vars.FileName = openFileDialog1.FileName;
         origIm.Image  = Image.FromStream(iStream);
         iStream.Close();
         rIm.Image = origIm.Image;
     }
     catch
     {}
 }
Пример #3
0
        private void menuItem16_Click(object sender, System.EventArgs e)
        {
            ImageSequence sequence = UIToolset.LoadSequence(openFileDialog1);
            String        file     = sequence.NextFile;
            TransformData trData   = new TransformData();

            while (File.Exists(file))
            {
                Stream iStream = UIToolset.LoadImage(file);
                origIm.Image = Image.FromStream(iStream);
                iStream.Close();
                rIm.Image = Insomart.Insom.Transform(origIm.Image, new TransformAction(Insom.ApplyTransform), trData);
                UIToolset.SaveImage(new FileStream(sequence.CurrentCovertedFile, FileMode.Create), rIm.Image);
                file = sequence.NextFile;
            }
        }
Пример #4
0
 private void toolBar1_ButtonClick(object sender, System.Windows.Forms.ToolBarButtonClickEventArgs e)
 {
     origIm.Image = Image.FromStream(UIToolset.LoadImage(openFileDialog1));
     rIm.Image    = origIm.Image;
 }