FitWindowType

Description

Returns or sets how the image is/should be resized to fit to the width or height of the Dynamic Web TWAIN viewer. To use the property, the view mode should be set to -1 by -1.

Data type

<short>

Syntax

.FitWindowType = 0;

Remarks

Before change the value of FitWindowType, make sure you have set the view mode to -1 by -1 using SetViewMode.

Allowed Values Fit Window Type
0 (default) Fit the image to both the width and height of
the viewer
1 Fit the image to the height of the viewer
2 Fit the image to the width of the viewer

When an error occurs, check ErrorCode or ErrorString for error information.

See also

SetViewMode()
IfFitWindow