{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

StampedPathEffectStyle.Companion

public static class StampedPathEffectStyle.Companion


Summary

Public methods

static final @NonNull StampedPathEffectStyle

Modifies the points within the path such that they fit within the drawn geometry.

static final @NonNull StampedPathEffectStyle

Rotates the path shape its center along the curvature of the drawn geometry.

static final @NonNull StampedPathEffectStyle

Translate the path shape into the specified location aligning the top left of the path with the drawn geometry.

Public methods

getMorph

public static final @NonNull StampedPathEffectStyle getMorph()

Modifies the points within the path such that they fit within the drawn geometry. This will turn straight lines into curves.

For example, a circle drawn with a square path and Morph will modify the straight lines of the square paths to be curves such that each stamped square is rendered as an arc around the curvature of the circle.

getRotate

public static final @NonNull StampedPathEffectStyle getRotate()

Rotates the path shape its center along the curvature of the drawn geometry. This does not modify the path itself.

For example, a circle drawn with a square path and Rotate will draw the square path repeatedly with the center of each stamped square along the curvature of the circle as well as each square being rotated along the circumference.

getTranslate

public static final @NonNull StampedPathEffectStyle getTranslate()

Translate the path shape into the specified location aligning the top left of the path with the drawn geometry. This does not modify the path itself.

For example, a circle drawn with a square path and Translate will draw the square path repeatedly with the top left corner of each stamped square along the curvature of the circle.