Rotates a 4-bit color FreeImage bitmap. Allowed values for angle are 90, 180 and 270. In case angle is 0 or 360 a clone is returned. 0 is returned for other values or in case the rotation fails.

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

Syntax

C#
public static FIBITMAP Rotate4bit(
	FIBITMAP dib,
	double angle
)
Visual Basic (Declaration)
Public Shared Function Rotate4bit ( _
	dib As FIBITMAP, _
	angle As Double _
) As FIBITMAP
Visual C++
public:
static FIBITMAP Rotate4bit(
	FIBITMAP dib, 
	double angle
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
angle
Type: System..::.Double
The angle of rotation.

Return Value

Handle to a FreeImage bitmap.

Remarks

This function is kind of temporary due to FreeImage's lack of rotating 4-bit images. It's particularly used by FreeImageBitmap's method RotateFlip. This function will be removed as soon as FreeImage supports rotating 4-bit images.

Exceptions

ExceptionCondition
System..::.ArgumentNullException dib is null.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also