I am trying to resize, rotate and crop multi-page tiff images. but i couldn't do that.
here is my code:
- Code: Select all
if (imaging.TiffIsMultiPage(imageInt))
{
int count = imaging.TiffGetPageCount(imageInt);
for (int i = 1; i <= count; i++)
{
imaging.TiffSelectPage(imageInt, i);
imaging.Resize(imageInt, width, height, InterpolationMode.InterpolationModeHighQuality);
// After this line i find : imaging.TiffGetPageCount(imageInt) equal zero, and imaging.TiffIsMultiPage(imageInt) equal false.
}
}
else
{
imaging.Resize(imageInt, width, height, InterpolationMode.InterpolationModeNearestNeighbor);
}
i couldnt resize the page when it's multipage. and when i try to save the image after this code. i get unsupported format.
i also want to make sure that: "SaveAsByteArray" method can save multipage tiff.
Thanks in advance.
