Using ImageMagick with CSharp

From MyWiki
Jump to: navigation, search

https://stackoverflow.com/questions/4918207/how-to-use-imagemagick-with-c-sharp

string arguments = string.Format(@"-density 300 {0}.pdf {1}.png", intputFileName, outputFileName");
var startInfo = new ProcessStartInfo {
    Arguments = arguments,
    Filename = @"C:\path\to\imagick\convert.exe"
};
Process.Start(startInfo).WaitForExit();