Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
UnitOfResolution Property
See Also 
Leadtools.Twain Namespace > TwainImageResolutionProperties Structure : UnitOfResolution Property




Gets or sets the unit of resolution to use.

Syntax

Visual Basic (Declaration) 
Public Property UnitOfResolution As TwainImageUnit
Visual Basic (Usage)Copy Code
Dim instance As TwainImageResolutionProperties
Dim value As TwainImageUnit
 
instance.UnitOfResolution = value
 
value = instance.UnitOfResolution
C# 
public TwainImageUnit UnitOfResolution {get; set;}
Managed Extensions for C++ 
public: __property TwainImageUnit get_UnitOfResolution();
public: __property void set_UnitOfResolution( 
   TwainImageUnit value
);
C++/CLI 
public:
property TwainImageUnit UnitOfResolution {
   TwainImageUnit get();
   void set (TwainImageUnit value);
}

Return Value

The unit of resolution to use. Possible values are (according to the TWAIN 1.9 specification): TwainCapabilityValue.UnitInches Inches unit. TwainCapabilityValue.UnitCentimeters Centimeters unit. TwainCapabilityValue.UnitPicas Picas unit. TwainCapabilityValue.UnitPoints Points unit. TwainCapabilityValue.UnitTwips Twips unit. TwainCapabilityValue.UnitPixels Pixels unit.

Example

Refer to ImageResolution example.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also