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

StrokeCap.Companion

public static class StrokeCap.Companion


Summary

Public methods

static final @NonNull StrokeCap

Begin and end contours with a flat edge and no extension.

static final @NonNull StrokeCap

Begin and end contours with a semi-circle extension.

static final @NonNull StrokeCap

Begin and end contours with a half square extension.

Public methods

getButt

public static final @NonNull StrokeCap getButt()

Begin and end contours with a flat edge and no extension.

getRound

public static final @NonNull StrokeCap getRound()

Begin and end contours with a semi-circle extension.

getSquare

public static final @NonNull StrokeCap getSquare()

Begin and end contours with a half square extension. This is similar to extending each contour by half the stroke width (as given by Paint.strokeWidth).