VectorPath


Leaf node of a Vector graphics tree. This specifies a path shape and parameters to color and style the shape itself

This is constructed as part of the result of ImageVector.Builder construction

Summary

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

Brush?

Specifies the color or gradient used to fill the path

Cmn
Float

Opacity to fill the path

Cmn
String

Name of the corresponding path

Cmn
List<PathNode>

Path information to render the shape of the path

Cmn
PathFillType

Rule to determine how the interior of the path is to be calculated

Cmn
Brush?

Specifies the color or gradient used to fill the stroke

Cmn
Float

Opacity to stroke the path

Cmn
StrokeCap

Specifies the linecap for a stroked path, either butt, round, or square.

Cmn
StrokeJoin

Specifies the linejoin for a stroked path, either miter, round or bevel.

Cmn
Float

Specifies the miter limit for a stroked path, the default is 4

Cmn
Float

Width of the line to stroke the path

Cmn
Float

Specifies the fraction of the path to trim from the end, in the range from 0 to 1.

Cmn
Float

Specifies the offset of the trim region (allows showed region to include the start and end), in the range from 0 to 1.

Cmn
Float

Specifies the fraction of the path to trim from the start, in the range from 0 to 1.

Cmn

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

fill

val fill: Brush?

Specifies the color or gradient used to fill the path

fillAlpha

val fillAlpha: Float

Opacity to fill the path

name

val name: String

Name of the corresponding path

pathData

val pathData: List<PathNode>

Path information to render the shape of the path

pathFillType

val pathFillType: PathFillType

Rule to determine how the interior of the path is to be calculated

stroke

val stroke: Brush?

Specifies the color or gradient used to fill the stroke

strokeAlpha

val strokeAlpha: Float

Opacity to stroke the path

strokeLineCap

val strokeLineCap: StrokeCap

Specifies the linecap for a stroked path, either butt, round, or square. The default is butt.

strokeLineJoin

val strokeLineJoin: StrokeJoin

Specifies the linejoin for a stroked path, either miter, round or bevel. The default is miter

strokeLineMiter

val strokeLineMiter: Float

Specifies the miter limit for a stroked path, the default is 4

strokeLineWidth

val strokeLineWidth: Float

Width of the line to stroke the path

trimPathEnd

val trimPathEnd: Float

Specifies the fraction of the path to trim from the end, in the range from 0 to 1. The default is 1.

trimPathOffset

val trimPathOffset: Float

Specifies the offset of the trim region (allows showed region to include the start and end), in the range from 0 to 1. The default is 0.

trimPathStart

val trimPathStart: Float

Specifies the fraction of the path to trim from the start, in the range from 0 to 1. The default is 0.