LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

Unit Property (CodecsDocumentImageInfo)






Gets the unit of the logical width and height of this document. .NET support WinRT support
Syntax
public CodecsRasterizeDocumentUnit Unit {get;}
'Declaration
 
Public ReadOnly Property Unit As CodecsRasterizeDocumentUnit
'Usage
 
Dim instance As CodecsDocumentImageInfo
Dim value As CodecsRasterizeDocumentUnit
 
value = instance.Unit
public CodecsRasterizeDocumentUnit Unit {get;}
 get_Unit(); 
public:
property CodecsRasterizeDocumentUnit Unit {
   CodecsRasterizeDocumentUnit get();
}

Property Value

A CodecsRasterizeDocumentUnit enumeration member that specifies the unit for PageWidth and PageHeight.
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

Example
For an example, refer to CodecsDocumentImageInfo.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CodecsDocumentImageInfo Class
CodecsDocumentImageInfo Members
CodecsRasterizeDocumentLoadOptions Class

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.