Added in API level 1

Cap


class Cap
kotlin.Any
   ↳ kotlin.Enum<android.graphics.Paint.Cap>
   ↳ android.graphics.Paint.Cap

The Cap specifies the treatment for the beginning and ending of stroked lines and paths. The default is BUTT.

Summary

Enum values

The stroke ends with the path, and does not project beyond it.

The stroke projects out as a semicircle, with the center at the end of the path.

The stroke projects out as a square, with the center at the end of the path.

Enum values

BUTT

Added in API level 1
enum val BUTT : Paint.Cap

The stroke ends with the path, and does not project beyond it.

ROUND

Added in API level 1
enum val ROUND : Paint.Cap

The stroke projects out as a semicircle, with the center at the end of the path.

SQUARE

Added in API level 1
enum val SQUARE : Paint.Cap

The stroke projects out as a square, with the center at the end of the path.