Returns or sets whether to resize the image to fit the image to the width or height of window.To use the property,the view mode should be set to -1 by -1.

Namespace: Dynamsoft.DotNet.TWAIN
Assembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 6.2.0.905 (6.2.0.0905)

Syntax

C#
public DWTFitWindowType FitWindowType { get; set; }
Visual Basic
Public Property FitWindowType As DWTFitWindowType
	Get
	Set
Visual C++
public:
property DWTFitWindowType FitWindowType {
	DWTFitWindowType get ();
	void set (DWTFitWindowType value);
}

Property Value

Type: DWTFitWindowType

Remarks

Allowed ValuesFit Window Type
0(default)Fit the image to the width and height of the window
1Fit the image to the height of the window
2Fit the image to the width of the window

Exceptions

ExceptionCondition
Dynamsoft.DotNet.TWAIN..::..TwainException When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString.

See Also