2015-10-19 77 views

回答

3

應該可以在不安裝Ghostscript的情況下使用它。你應該先在你自己的機器上下載並安裝Ghostscript。如果你想使用x64版本的Magick.NET,你應該安裝x64版本的Ghostscript。您需要安裝它,因爲您需要將文件gsdll64.dll或gsdll32.dll複製到您的應用程序。我沒有測試過這個,所以你可能必須先將dll複製到你的bin目錄下才能使用。您可以嘗試將其放在bin目錄之外。

之前,你在你的應用程序中使用Magick.NET確保你做以下電話:

MagickNET.SetGhostscriptDirectory(@"c:\directory\where\you\put\the\dll\of\ghostscript"); 
+0

非常感謝你。它工作 – Jaikumar

+0

我需要bin文件夾,無論它安裝在哪裏 –

+2

'string binDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly()。GetName()。CodeBase);' 'int i = binDir = binDir.Substring(i + 2);' 'MagickNET.SetGhostscriptDirectory(binDir);' –

相關問題