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

Unit Property (CodecsRasterizeDocumentLoadOptions)






Gets or sets the units to use for PageWidth, PageHeight, LeftMargin, TopMargin, RightMargin and BottomMargin values. .NET support WinRT support
Syntax
public CodecsRasterizeDocumentUnit Unit {get; set;}
'Declaration
 
Public Property Unit As CodecsRasterizeDocumentUnit
'Usage
 
Dim instance As CodecsRasterizeDocumentLoadOptions
Dim value As CodecsRasterizeDocumentUnit
 
instance.Unit = value
 
value = instance.Unit
public CodecsRasterizeDocumentUnit Unit {get; set;}
 get_Unit();
set_Unit(value);
public:
property CodecsRasterizeDocumentUnit Unit {
   CodecsRasterizeDocumentUnit get();
   void set (    CodecsRasterizeDocumentUnit value);
}

Property Value

A CodecsRasterizeDocumentUnit enumeration member that specify the unit to use for PageWidth, PageHeight, LeftMargin, TopMargin, RightMargin and BottomMargin values. Default value is CodecsRasterizeDocumentUnit.Inch
Remarks

When using a pixel unit (CodecsRasterizeDocumentUnit.Pixel), the page width and height are multiplied by the current resolution(XResolution and YResolution) to determine the final physical page size).

Possible values are:

Value Description
CodecsRasterizeDocumentUnit.Pixel

The page width, height or margins are in pixels

CodecsRasterizeDocumentUnit.Inch

The page width, height or margins are in inches

CodecsRasterizeDocumentUnit.Millimeter

The page width, height or margins are in millimeters

Example
For an example, refer to CodecsRasterizeDocumentLoadOptions.
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

CodecsRasterizeDocumentLoadOptions Class
CodecsRasterizeDocumentLoadOptions Members
CodecsRasterizeDocumentLoadOptions Class
Implementing PDF Plug in Features
CodecsDocumentImageInfo Class

 

 


Products | Support | Contact Us | Copyright Notices

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