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:
FreeImageAPIAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | dib is null. |