This function rotates a 1-, 8-bit greyscale or a 24-, 32-bit color image by means of 3 shears. 1-bit images rotation is limited to integer multiple of 90°. null is returned for other values.

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

Syntax

C#
public static FIBITMAP Rotate<T>(
	FIBITMAP dib,
	double angle,
	Nullable<T> backgroundColor
)
where T : struct, new()
Visual Basic (Declaration)
Public Shared Function Rotate(Of T As {Structure, New}) ( _
	dib As FIBITMAP, _
	angle As Double, _
	backgroundColor As Nullable(Of T) _
) As FIBITMAP
Visual C++
public:
generic<typename T>
where T : value class, gcnew()
static FIBITMAP Rotate(
	FIBITMAP dib, 
	double angle, 
	Nullable<T> backgroundColor
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
angle
Type: System..::.Double
The angle of rotation.
backgroundColor
Type: System..::.Nullable<(Of <(T>)>)
The color used used to fill the bitmap's background.

Type Parameters

T
The type of the color to use as background.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.13.0, 3.13.1

See Also