ImageTaskBaseTRotate Method
Rotates the current image by the given angle.
The command is added to the chain and not executed until the actual processing is done.
Namespace: GleamTech.ImageUltimateAssembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 6.2.0
public T Rotate(
double angle,
Color? backgroundColor = null
)
Public Function Rotate (
angle As Double,
Optional backgroundColor As Color? = Nothing
) As T
- angle Double
-
The angle in degrees to rotate the image by. A positive degree will cause a clockwise rotation
and a negative degree will cause a counter-clockwise rotation.
Angles of 90, 180, or 270 degrees will use a special algorithm for higher performance.
- backgroundColor NullableColor (Optional)
-
The background color for the rotated image. Default color is transparent.
If the rotated image is not rectangular (ie. angle is not 90, 180, or 270 degrees),
it will be padded with the background color to get a rectangular image.
TThe same instance of this class.
A
GleamTech.Drawing.Color parameter/property can be implicitly (automatically) cast from/to other image libraries: