Problem while handling Tiff Images
Hi,
I am opening tiff ( single page /multiple page ) files in my application.
I am facing the following problem while handling tiff files that are either
1. Created in Photoshop with zip compression
2. Opened after editing in Microsoft Office Document Imaging( editing like creating multipages from a single page file)
When I create a Bitmap from these files so as to use that to extract frames:
using (Bitmap mbmapfile = new Bitmap(imagename))
{
Guid[] mfdlistfile= mbmapfile.FrameDimensionsList;
FrameDimension mfdfile= new FrameDimension(mfdlistfile[0]);
pages = mbmapfile.GetFrameCount(mfdfile);
size = new Size(mbmapfile.Size.Width,mbmapfile.Size.Height);
}
I get System.ArgumentException: Invalid parameter used in the line;
Bitmap mbmapfile = new Bitmap(msfilenamepath)
This code is working fine for most of the tiff files.
Kindly suggest any solution.
Thanks
|