i have hundred of multipage and single page tiffs with all kind of compression and i want to convert them to group 4 with libtiff.net and if possible with TiffCP in c#. i try to do this by "add reference" in Microsoft Visual Studio and using Bitmiracle.TiffCP;
but i don't know how should i use this namespace.
how can i solve that?
TiffCP is an executable packaged with the binaries when you download . Note in that directory >> TiffCP.exe .
Here is an implmentation i did for an example:
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();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.