下面是我添加缩略图和源码
RasterImage image = _codecs.Load(name, 1);
RasterImage tnImage = image.CreateThumbnail(thumbSize.Width, thumbSize.Height, image.BitsPerPixel, RasterViewPerspective.TopLeft, RasterSizeFlags.Bicubic);
ImageViewerItem item = new ImageViewerItem();
item.Image = tnImage;
item.Text = string.Format("第{0}页", i + 1);
item.PageNumber = 1;
imageViewer1.Items.Insert(i, item); |