←Select platform

Unit Property

Summary

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

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public CodecsRasterizeDocumentUnit Unit { get; } 
Public ReadOnly Property Unit As Leadtools.Codecs.CodecsRasterizeDocumentUnit 
@property (nonatomic, assign, readonly) LTCodecsRasterizeDocumentUnit unit 
public CodecsRasterizeDocumentUnit getUnit() 
 get_Unit();  

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly