0

我有数百个带有各种压缩的多页和单页 tiff,我想使用 libtiff.net 将它们转换为第 4 组,如果可能的话,使用 c# 中的 TiffCP。我尝试通过 Microsoft Visual Studio 中的“添加引用”来做到这一点,using Bitmiracle.TiffCP;但我不知道应该如何使用这个命名空间。

我该如何解决?

4

1 回答 1

1

TiffCP 是下载时与二进制文件一起打包的可执行文件。请注意该目录 >> TiffCP.exe

这是我为示例所做的一个实现:

            System.Diagnostics.Process p = new System.Diagnostics.Process();
            p.StartInfo.UseShellExecute = false;
            p.StartInfo.RedirectStandardOutput = true;
            p.StartInfo.FileName = @"C:\PathToExe\TiffCP.exe";
            string path1 = @"C:\PathToImage\image.tiff";
            string path2 = @"C:\PathToImage\imagePage1.tiff";
            p.StartInfo.Arguments = "\"" + path1 + "\"" + ",0 \"" + path2 + "\"";
            p.Start();
            string t = p.StandardOutput.ReadToEnd();
于 2014-03-10T16:16:14.810 回答