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.

Definition

Namespace: GleamTech.ImageUltimate
Assembly: GleamTech.ImageUltimate (in GleamTech.ImageUltimate.dll) Version: 6.2.0
C#
public T Rotate(
	double angle,
	Color? backgroundColor = null
)

Parameters

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.

Return Value

T
The same instance of this class.

Example

  Notes to Callers

A GleamTech.Drawing.Color parameter/property can be implicitly (automatically) cast from/to other image libraries:

See Also