Click or drag to resize

TwainResolution Class

Describes the horizontal and vertical resolution.
Inheritance Hierarchy
SystemObject
  Atalasoft.TwainTwainResolution

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class TwainResolution

The TwainResolution type exposes the following members.

Constructors
  NameDescription
Public methodTwainResolution
Creates a new instance of TwainResolution.
Public methodTwainResolution(Single, Single)
Creates a new instance of TwainResolution specifying x and y.
Public methodTwainResolution(Single, Single, UnitType)
Creates a new instance of TwainResolution specifying x, y and units.
Top
Properties
  NameDescription
Public propertyUnits
Gets or sets the units of measure used for the X, Y values.
Public propertyX
Gets or sets the Horizontal X resolution.
Public propertyY
Gets or sets the Vertical Y resolution.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Returns a value representing this object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns the X and Y values of the resolution.
(Overrides ObjectToString.)
Public methodToString(String)
Returns a formatted string representing the resolution.
Top
Examples
TwainResolutionCS (C#)
this.device.Open();
this.device.Resolution = new TwainResolution(this.scanResolution.X, this.scanResolution.Y, this.scanResolution.Units);
this.device.ModalAcquire = true;
this.device.Acquire();
this.device.Close();
TwainResolutionVB (Visual Basic)
Me.device.Open()
Me.device.Resolution = New TwainResolution(Me.scanResolution.X, Me.scanResolution.Y, Me.scanResolution.Units)
Me.device.ModalAcquire = True
Me.device.Acquire()
Me.device.Close()
See Also