Splitting TIFF Files on different formats using .NET
Posted
by Jojo
on Stack Overflow
See other posts from Stack Overflow
or by Jojo
Published on 2010-04-27T01:17:43Z
Indexed on
2010/04/27
1:23 UTC
Read the original article
Hit count: 332
HI All, I have below code to extract a single page from a multi-paged TIFF file. The problem is, the input file is in CCITT Group 4 compression however the output compression is LZW. Can .NET outputs TIFF files other than this compression?
FileStream fileStream = File.Open(outputFileName, FileMode.Create, FileAccess.ReadWrite);
sourceImage.SelectActiveFrame(firstFrameDimension, pageNumbers[i]);
sourceImage.Save(fileStream, ImageFormat.Tiff);
fileStream.Close();
© Stack Overflow or respective owner