setRotation

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

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

Hint: If you are using a custom AP stream make sure that the bounding box aspect ratio matches the source aspect ratio exactly, otherwise the stamp will appear distorted when rotated.

See also setRotation. See also setRotation.

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.


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

Sets the rotation of this stamp.

Hint: If you are using a custom AP stream make sure that the bounding box aspect ratio matches the source aspect ratio exactly, otherwise the stamp will appear distorted when rotated.

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 stamp. This will adjust the bounding box so rotating the annotation will cause the bounds to change.

Hint: If you are using a custom AP stream make sure that the bounding box aspect ratio matches the source aspect ratio exactly, otherwise the stamp will appear distorted when rotated.

See also setRotation. See also setRotation.

Parameters

rotation

The clockwise rotation in degrees.


open fun setRotation(rotation: Int, adjustBounds: Boolean)

Sets the rotation of this stamp.

See also adjustBoundsForRotation

Parameters

rotation

The clockwise rotation in degrees.

adjustBounds

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