我有成百上千的多页和单页tiffs,所有类型的压缩,我想将它们转换为组4与libtiff.net,如果可能的话,与c#的TiffCP。我尝试在Microsoft Visual Studio和using Bitmiracle.TiffCP;中通过“添加引用”来完成此操作,但我不知道应该如何使用此命名空间。
我该如何解决这个问题呢?
发布于 2014-03-11 00:16:15
TiffCP是一个可执行,当您使用download时,它与二进制文件打包在一起。注意>> 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();https://stackoverflow.com/questions/22032259
复制相似问题