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
SystemObject
  TallComponents.PDF.RasterizerExtractedImageInfo

Namespace:  TallComponents.PDF.Rasterizer
Assembly:  TallComponents.PDF.Rasterizer (in TallComponents.PDF.Rasterizer.dll) Version: 3.0.153.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
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(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