ExtractedImageInfo Class

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

Namespace:  TallComponents.PDF.Rasterizer
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.167.0
Syntax
public class ExtractedImageInfo

The ExtractedImageInfo type exposes the following members.

Properties
  NameDescription
Public propertyBitmap
The extracted image.
Public propertyTransformation
The transformation that should be performed in order to draw the image at the right location. This transformation assumes that the original coordinate system has its origin at the lower-left corner and a unit corresponds to a point (1/72 inch). It also assumes that the image is drawn at the origin of the transformed coordinate system as a unit rectangle.
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Examples
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 ) );
      }
   }
}
See Also