←Select platform

Unit Property

Summary
Gets the unit of the logical width and height of this document.
Syntax
C#
VB
Objective-C
C++
Java
public CodecsRasterizeDocumentUnit Unit { get; } 
Public ReadOnly Property Unit As CodecsRasterizeDocumentUnit 
@property (nonatomic, assign, readonly) LTCodecsRasterizeDocumentUnit unit 
public CodecsRasterizeDocumentUnit getUnit() 

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 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.