Expand|Select|Wrap|Line Numbers
- Image im = Image.FromFile(opendialog1.fileName);
- IList images = new ArrayList();
- int count
- =im.GetFrameCount(FrameDimension.Page);
- for(int i=0; i < count; i++)
- {
- im.SelectActiveFrame(FrameDimension.Page, i);
- MemoryStream m = new MemoryStream();
- im.Save(m, ImageFormat.Bmp);
- images.Add( Image.FromStream(m));
- // m.SetLength(0);
- // m = null;
- m.Close();
- im.Dispose();
- }
- for(int im=0;im<count;im++)
- {
- pictureBox1.Image = (Bitmap)images[0];
- }
- images.Clear();
Image im = Image.FromFile(opendialog1.fileName);
Can anyone help me out from this problem?Is there any other way to accomplish my task?
Thanks in advance1