Veronique 1 éve
szülő
commit
6d880aa2c1
1 módosított fájl, 11 hozzáadás és 3 törlés
  1. 11 3
      QuickPDF2JPG/FrmMain.cs

+ 11 - 3
QuickPDF2JPG/FrmMain.cs

@@ -104,6 +104,8 @@ namespace QuickPDF2JPG {
             currentDoc.Rendering.DotsPerInchX = dotsPerInchX;
             currentDoc.Rendering.DotsPerInchY = dotsPerInchY;
             currentDoc.Rendering.BitsPerChannel = bitsPerChannel;
+            currentDoc.Rendering.AntiAliasImages = false;
+            currentDoc.Rendering.AntiAliasPolygons = true;
             currentDoc.Rendering.SaveQuality = 100;
             currentDoc.Rendering.ColorSpace = XRendering.ColorSpaceType.Cmyk;
 
@@ -118,15 +120,21 @@ namespace QuickPDF2JPG {
                     string path = Path.GetDirectoryName(task.FilePath) + "\\" + Path.GetFileNameWithoutExtension(task.FileName) + "_" + pageNum + ".jpg";
 
                     threadList[count] = new Thread(new RenderingWorker(currentDoc, path).DoWork);
-                    //½ø¶ÈÌõ
-                    listFiles.Rows[task.FileIndex].Cells[2].Value = (int)listFiles.Rows[task.FileIndex].Cells[2].Value + progressStep;
+
                     ++count;
                     ++pageNum;
                 }
                 for (int i = 0; i < count; ++i)
                     threadList[i].Start();
-                for (int i = 0; i < count; ++i)
+                for (int i = 0; i < count; ++i) {
                     threadList[i].Join();
+                    //½ø¶ÈÌõ
+                    context.Post(_ => {
+                        listFiles.Rows[task.FileIndex].Cells[2].Value = (int)listFiles.Rows[task.FileIndex].Cells[2].Value + progressStep;
+                    }, null);
+                }
+
+
             }
             currentDoc.Clear();