|
-
October 5th, 2005, 01:29 AM
#1
How to Show Multi-page tiff image using c#
Dear All,
How to show multi-page tiff image.
Please give guidance for me..
Regards,
Sivakumar.kr
-
October 6th, 2005, 02:43 AM
#2
Re: How to Show Multi-page tiff image using c#
One possibility is to split the TIFF image into multiple images, then you can display them as normal...(this code is untested)
Code:
// read in the image
Image image = Image.FromFile(...);
IList images = new ArrayList();
int count = image.GetFrameCount(FrameDimension.Page);
for(int idx=0; idx < count; idx++)
{
// save each frame to a bytestream
image.SelectActiveFrame(FrameDimension.Page, idx);
MemoryStream byteStream = new MemoryStream();
image.Save(byteStream, ImageFormat.Bmp);
// and then create a new Image from it
images.Add(Image.FromStream(byteStream));
}
Useful? Then click on (Rate This Post) at the top of this post.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|