FreeImage.NET Class Library Reference
FreeImageBitmapRotateT Method (Double, NullableT) |
This method rotates a 1-, 4-, 8-bit greyscale or a 24-, 32-bit color image by means of 3 shears.
For 1- and 4-bit images, rotation is limited to angles whose value is an integer
multiple of 90.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public bool Rotate<T>( double angle, Nullable<T> backgroundColor ) where T : struct, new()
Parameters
- 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: BooleanReturns true on success, false on failure.
See Also