Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CodecsDocumentImageInfo Class
See Also  Members  
Leadtools.Codecs Namespace : CodecsDocumentImageInfo Class



Provides information specific to document images.

Syntax

Visual Basic (Declaration) 
Public Class CodecsDocumentImageInfo 
Visual Basic (Usage)Copy Code
Dim instance As CodecsDocumentImageInfo
C# 
public class CodecsDocumentImageInfo 
C++/CLI 
public ref class CodecsDocumentImageInfo 

Example

For an example, refer to CodecsRasterizeDocumentLoadOptions.

Remarks

LEADTOOLS provides support for loading a document as a raster image. Documents formats such as PDF, XPS, XLS, RTF and Text do not contain physical width, height or resolution. It is up to the loader (in this case, the RasterCodecs object) to specify the transformation from logical coordinates to physical pixels through a process called rasterization. For more information, refer to CodecsRasterizeDocumentLoadOptions.

The CodecsDocumentImageInfo class contains properties that specify the original document logical size on disk. This can be useful when calculating the rasterization parameters based on your application viewing needs. The CodecsDocumentImageInfo class contains the following members:

MemberDescription
IsDocumentFile

true if the image file or stream passed to RasterCodecs.GetInformation was a document file such as PDF or XPS and the other members of CodecsDocumentImageInfo are valid. false, otherwise.

PageWidth

The original width of the document page in Unit

PageHeight

The original height of the document page in Unit

Unit

The unit for PageWidth and PageHeight

These values specify the original size of the document on disk regardless of the settings of current document rasterization. The CodecsImageInfo.Width, CodecsImageInfo.Height, CodecsImageInfo.XResolution and CodecsImageInfo.YResolution contains the size of the final rasterized document in physical units.

The original document format is returned as usual in CodecsImageInfo.Format.

The CodecsDocumentImageInfo instance is returned in the CodecsImageInfo.Document property of the CodecsImageInfo object returned by all the RasterCodecs.GetInformation methods.

Inheritance Hierarchy

System.Object
   Leadtools.Codecs.CodecsDocumentImageInfo

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also