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

Leadtools.Codecs Assembly