Rotates the image of a specified index in buffer by specified angle.

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

Syntax

C#
public bool Rotate(
	short sImageIndex,
	double dbAngle,
	bool bKeepSize,
	DWTInterpolationMethod dwtInterpolationMethod
)
Visual Basic
Public Function Rotate ( _
	sImageIndex As Short, _
	dbAngle As Double, _
	bKeepSize As Boolean, _
	dwtInterpolationMethod As DWTInterpolationMethod _
) As Boolean

Parameters

sImageIndex
Type: System..::..Int16
Specifies the index of image in buffer. The index is 0-based.
dbAngle
Type: System..::..Double
Specifies the rotation angle.
bKeepSize
Type: System..::..Boolean
Keep size or not.
dwtInterpolationMethod
Type: Dynamsoft.DotNet.TWAIN.Enums..::..DWTInterpolationMethod
Interpolation method.

Return Value

True indicates success. False indicates failure.

Remarks

You can specify the fill color by BackgroundFillColor property.

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