Table of Contents

Method SetRotation

Namespace
SkiaSharp.Extended
Assembly
SkiaSharp.Extended.dll

SetRotation(float, SKPoint?)

Sets the rotation angle and raises TransformChanged.

public void SetRotation(float rotation, SKPoint? pivot = null)

Parameters

rotation float

The desired rotation angle in degrees.

pivot SKPoint?

Optional pivot point in view coordinates. When provided, the offset is adjusted so the pivot point remains stationary after the rotation change.