FreeImage.NET Class Library Reference
FreeImageRotate4bit Method |
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP Rotate4bit( FIBITMAP dib, double angle )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - angle
- Type: SystemDouble
The angle of rotation.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | dib is null. |
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.
See Also