This method performs a rotation and / or translation of an 8-bit greyscale, 24- or 32-bit image, using a 3rd order (cubic) B-Spline.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public bool Rotate(
	double angle,
	double xShift,
	double yShift,
	double xOrigin,
	double yOrigin,
	bool useMask
)
Visual Basic (Declaration)
Public Function Rotate ( _
	angle As Double, _
	xShift As Double, _
	yShift As Double, _
	xOrigin As Double, _
	yOrigin As Double, _
	useMask As Boolean _
) As Boolean
Visual C++
public:
bool Rotate(
	double angle, 
	double xShift, 
	double yShift, 
	double xOrigin, 
	double yOrigin, 
	bool useMask
)

Parameters

angle
Type: System..::.Double
The angle of rotation.
xShift
Type: System..::.Double
Horizontal image translation.
yShift
Type: System..::.Double
Vertical image translation.
xOrigin
Type: System..::.Double
Rotation center x-coordinate.
yOrigin
Type: System..::.Double
Rotation center y-coordinate.
useMask
Type: System..::.Boolean
When true the irrelevant part of the image is set to a black color, otherwise, a mirroring technique is used to fill irrelevant pixels.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also