Beispiel #1
0
 protected override void WndProc(ref Message m)
 {
     if (m.Msg == 0x0312 && m.WParam.ToInt32() == MYACTION_HOTKEY_ID)
     {
         var saveOptions = new ps.JPEGSaveOptions();
         saveOptions.EmbedColorProfile = true;
         saveOptions.FormatOptions     = ps.PsFormatOptionsType.psStandardBaseline;
         saveOptions.Matte             = ps.PsMatteType.psNoMatte;
         saveOptions.Quality           = 10;
         app.ActiveDocument.SaveAs(outputPath + "\\" + currentEntry.Id + ".jpg", saveOptions, true);
         if (currentEntryN == entries.Count - 1)
         {
             UnregisterHotKey(this.Handle, MYACTION_HOTKEY_ID);
             closeAll();
             app.Quit();
             MessageBox.Show("All Done!");
         }
         else
         {
             currentEntryN++;
             openNext();
         }
     }
     base.WndProc(ref m);
 }
Beispiel #2
0
        public async Task saveAsJPG(recordEntry entry)
        {
            toolStripStatusLabel1.Text = done + " done of " + count + " - current entry: " + entry.Name;
            closeAll();
            openFile(entry);
            var saveOptions = new ps.JPEGSaveOptions();

            saveOptions.EmbedColorProfile = true;
            saveOptions.FormatOptions     = ps.PsFormatOptionsType.psStandardBaseline;
            saveOptions.Matte             = ps.PsMatteType.psNoMatte;
            saveOptions.Quality           = 10;
            app.ActiveDocument.SaveAs(outputPath + "\\" + entry.Id + ".jpg", saveOptions, true);
            toolStripProgressBar1.Value++;
            done++;
        }