setRotation

fun setRotation(rotation: Int, 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.