TwainResolution Class |
Namespace: Atalasoft.Twain
The TwainResolution type exposes the following members.
| Name | Description | |
|---|---|---|
| TwainResolution | Creates a new instance of TwainResolution. | |
| TwainResolution(Single, Single) | Creates a new instance of TwainResolution specifying x and y. | |
| TwainResolution(Single, Single, UnitType) | Creates a new instance of TwainResolution specifying x, y and units. |
| Name | Description | |
|---|---|---|
| Units | Gets or sets the units of measure used for the X, Y values. | |
| X | Gets or sets the Horizontal X resolution. | |
| Y | Gets or sets the Vertical Y resolution. |
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode | Returns a value representing this object. (Overrides ObjectGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns the X and Y values of the resolution. (Overrides ObjectToString.) | |
| ToString(String) | Returns a formatted string representing the resolution. |
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();
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()