setRotation

open fun setRotation(rotation: Int, @NonNull contentSize: Size, adjustBounds: Boolean)

Sets the rotation of this free text annotation.

See also adjustBoundsForRotation.

Parameters

rotation

The clockwise rotation in degrees.

contentSize

The size of the annotation content, it will be rotated and scaled to fit inside the actual bounding box.

adjustBounds

If true will also adjust the bounding box to match the new rotation.


open fun setRotation(rotation: Int)

Sets the rotation of this free text annotation. This will adjust the bounding box so rotating the annotation will cause the bounds to change.

Parameters

rotation

The clockwise rotation in degrees.