FreeImage.NET Class Library Reference
FreeImageRotateT Method (FIBITMAP, Double, NullableT) |
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP Rotate<T>( FIBITMAP dib, double angle, Nullable<T> backgroundColor ) where T : struct, new()
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - angle
- Type: SystemDouble
The angle of rotation. - backgroundColor
- Type: SystemNullableT
The color used used to fill the bitmap's background.
Type Parameters
- T
- The type of the color to use as background.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
See Also