multipage tiff

39 views
Skip to first unread message

brandd

unread,
Apr 5, 2007, 4:39:44 PM4/5/07
to PixTools (scanning & imaging SDK)
Hello,
It is very interesting to discover this group. I am trying to break a
multi-page tiff image apart and save each page individually. Is it
possible with Pixtools.NET? Any help would be appreciated.

---
Thanks,
brand dart

Vankir

unread,
Apr 9, 2007, 3:27:49 AM4/9/07
to PixTools (scanning & imaging SDK)
Hello Brand,
Sorry for my long silence.
Here it is the sample code which allows to do what you want.
static void Split(String fileName)
{
PixImageStorage inFile = PixImageStorage.Open(fileName);
int counter = 0;
foreach(PixImage img in inFile.Images)
{
PixImageStorage.Save(img, PixFileType.Tiff,
counter.ToString() + ".tif",

img.StorageInformation.CompressionSettings,
OpenFileMode.CreateAlways);
counter++;
}
}

brandd

unread,
Apr 9, 2007, 3:41:25 PM4/9/07
to PixTools (scanning & imaging SDK)
Thanks for the help. Working great now. Thanks again
Reply all
Reply to author
Forward
0 new messages