setPosition

Sets the position of the text sticker.

Return

The TextLayerSettings itself to make it chainable.

Parameters

angle

is the rotation angle of the text sticker.

textSize

is the size of the text relative to the shorter side of the source.

x

is the horizontal position of the text sticker.

y

is the vertical position of the text sticker.

open fun setPosition(x: Double, y: Double, angle: Float, textSize: Double): TextLayerSettings

Sets the position of the text sticker.

Return

The TextLayerSettings itself to make it chainable.

Parameters

angle

is the rotation angle of the text sticker.

stickerWidth

is the width of the text sticker bounding box.

textSize

is the size of the text relative to the shorter side of the source.

x

is the horizontal position of the text sticker.

y

is the vertical position of the text sticker.

open fun setPosition(x: Double, y: Double, angle: Float, textSize: Double, stickerWidth: Double): TextLayerSettings