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