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



Gets the unit of the logical width and height of this document.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Unit As CodecsRasterizeDocumentUnit
Visual Basic (Usage)Copy Code
Dim instance As CodecsDocumentImageInfo
Dim value As CodecsRasterizeDocumentUnit
 
value = instance.Unit
C# 
public CodecsRasterizeDocumentUnit Unit {get;}
C++/CLI 
public:
property CodecsRasterizeDocumentUnit Unit {
   CodecsRasterizeDocumentUnit get();
}

Property Value

A CodecsRasterizeDocumentUnit enumeration member that specifies the unit for PageWidth and PageHeight.

Example

For an example, refer to CodecsDocumentImageInfo.

Remarks

The logical width and height of the document is the original size before rasterization. LEADTOOLS usually returns the logical size in inches.

The PageWidth, PageHeight and Unit properties are only valid if the value of IsDocumentFile is true.

Possible values are:

Value Description
CodecsRasterizeDocumentUnit.Pixel

The page width and height are in pixels

CodecsRasterizeDocumentUnit.Inch

The page width and height are in inches

CodecsRasterizeDocumentUnit.Millimeter

The page width and height are in millimeters

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