LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
CodecsRasterizeDocumentUnit Enumeration
See Also  
Leadtools.Codecs Namespace : CodecsRasterizeDocumentUnit Enumeration



Specifies the unit of a document page width, height or margins.

Syntax

Visual Basic (Declaration) 
Public Enum CodecsRasterizeDocumentUnit 
   Inherits System.Enum
   Implements IComparableIConvertibleIFormattable 
Visual Basic (Usage)Copy Code
Dim instance As CodecsRasterizeDocumentUnit
C# 
public enum CodecsRasterizeDocumentUnit : System.Enum, IComparableIConvertibleIFormattable  
C++/CLI 
public enum class CodecsRasterizeDocumentUnit : public System.Enum, IComparableIConvertibleIFormattable  

Members

MemberDescription
Inch

The page width, height or margins are in inches.

Millimeter

The page width, height or margins are in millimeters.

Pixel

The page width, height or margins are in pixels.

Example

For an example, refer to CodecsPdfOptions.

Remarks

The CodecsRasterizeDocumentUnit is used to specify the unit of a document page width, height or margins. By using this enumeration, you can define document (logical) sizes in pixels, inches or millimeters.

The CodecsRasterizeDocumentUnit enumeration is used as the value for the following class members:

Class Member Units
CodecsDocumentImageInfo.Unit

As the units for CodecsDocumentImageInfo.PageWidth and CodecsDocumentImageInfo.PageHeight

CodecsRasterizeDocumentLoadOptions.Unit

As the units for CodecsRasterizeDocumentLoadOptions.PageWidth, CodecsRasterizeDocumentLoadOptions.PageHeight, CodecsRasterizeDocumentLoadOptions.LeftMargin, CodecsRasterizeDocumentLoadOptions.TopMargin, CodecsRasterizeDocumentLoadOptions.RightMargin and CodecsRasterizeDocumentLoadOptions.BottomMargin

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Codecs.CodecsRasterizeDocumentUnit

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also