Represents a single occurrence of an image on a PDF page. Encapsulates both the image and its location on the page.

Namespace: TallComponents.PDF.Rasterizer
Assembly: TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.72.2

Syntax

C#
public class ExtractedImageInfo
Visual Basic
Public Class ExtractedImageInfo

Examples

CopyC#
using ( FileStream file = new FileStream( 
   string.Format( @"in.pdf", fileName ), FileMode.Open, FileAccess.Read ) )
{
   Document document = new Document( new BinaryReader( file ) );
   for ( int pageIndex=0; pageIndex<document.Pages.Count; pageIndex++ )
   {
      Page page = document.Pages[ pageIndex ];
      <b>ExtractedImageInfo</b>[] images = page.ExtractImages();
      for ( int imageIndex=0; null!=images && imageIndex<images.Length; imageIndex++ )
      {
         images[imageIndex].Bitmap.Save( 
            string.Format( @"..\..\out_{0}_{1}.bmp", pageIndex, imageIndex ) );
      }
   }
}

Inheritance Hierarchy

System..::..Object
  TallComponents.PDF.Rasterizer..::..ExtractedImageInfo

See Also