aviskumar
October 5th, 2005, 01:29 AM
Dear All,
How to show multi-page tiff image.
Please give guidance for me..
Regards,
Sivakumar.kr
How to show multi-page tiff image.
Please give guidance for me..
Regards,
Sivakumar.kr
|
Click to See Complete Forum and Search --> : How to Show Multi-page tiff image using c# aviskumar October 5th, 2005, 01:29 AM Dear All, How to show multi-page tiff image. Please give guidance for me.. Regards, Sivakumar.kr Norfy October 6th, 2005, 02:43 AM One possibility is to split the TIFF image into multiple images, then you can display them as normal...(this code is untested)// 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)); } codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |