VegaRise.NET
Back to Shape

SetRotationMethod

Definition

Namespace
DOM.Elements.Graphics
Assembly
DOM.dll

Overloads

SetRotation(double angle)

Sets the rotation angle of the graphic.

SetRotation(Rotation rotation)

Sets the rotation of the graphic using a pre-configured object. Rotation

SetRotation(double angle)

SetRotation(double angle)

Sets the rotation angle of the graphic.

Parameters

angle
Rotation angle in degrees (positive = clockwise).

Remarks

Rotation is applied around the graphic's anchor point, which is typically the center of the bounding box. The method automatically initializes if it is . The angle is normalized to the range [0, 360) by the class. Transform Rotation null

SetRotation(Rotation rotation)

SetRotation(Rotation rotation)

Sets the rotation of the graphic using a pre-configured object. Rotation

Parameters

rotation
The rotation object containing the angle.

Examples

csharp
1var graphic = new Graphic();
2graphic.SetRotation(45); // Rotates 45 degrees clockwise
3
VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.