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

OutlineKt

public final class OutlineKt


Summary

Public methods

static final void
addOutline(@NonNull Path receiver, @NonNull Outline outline)

Adds the outline to the Path.

static final void
drawOutline(
    @NonNull Canvas receiver,
    @NonNull Outline outline,
    @NonNull Paint paint
)

Draws the Outline on a Canvas.

static final void
drawOutline(
    @NonNull DrawScope receiver,
    @NonNull Outline outline,
    @NonNull Brush brush,
    float alpha,
    @NonNull DrawStyle style,
    ColorFilter colorFilter,
    @NonNull BlendMode blendMode
)

Draws the Outline on a DrawScope.

static final void
drawOutline(
    @NonNull DrawScope receiver,
    @NonNull Outline outline,
    @NonNull Color color,
    float alpha,
    @NonNull DrawStyle style,
    ColorFilter colorFilter,
    @NonNull BlendMode blendMode
)

Draws the Outline on a DrawScope.

Public methods

addOutline

public static final void addOutline(@NonNull Path receiver, @NonNull Outline outline)

Adds the outline to the Path.

drawOutline

public static final void drawOutline(
    @NonNull Canvas receiver,
    @NonNull Outline outline,
    @NonNull Paint paint
)

Draws the Outline on a Canvas.

Parameters
@NonNull Outline outline

the outline to draw.

@NonNull Paint paint

the paint used for the drawing.

drawOutline

public static final void drawOutline(
    @NonNull DrawScope receiver,
    @NonNull Outline outline,
    @NonNull Brush brush,
    float alpha,
    @NonNull DrawStyle style,
    ColorFilter colorFilter,
    @NonNull BlendMode blendMode
)

Draws the Outline on a DrawScope.

Parameters
@NonNull Outline outline

the outline to draw.

@NonNull Brush brush

Brush applied to the outline when it is drawn

float alpha

Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively

@NonNull DrawStyle style

Specifies whether the outline is stroked or filled in

ColorFilter colorFilter

: ColorFilter to apply to the Brush when drawn into the destination

@NonNull BlendMode blendMode

: Blending algorithm to be applied to the outline

drawOutline

public static final void drawOutline(
    @NonNull DrawScope receiver,
    @NonNull Outline outline,
    @NonNull Color color,
    float alpha,
    @NonNull DrawStyle style,
    ColorFilter colorFilter,
    @NonNull BlendMode blendMode
)

Draws the Outline on a DrawScope.

Parameters
@NonNull Outline outline

the outline to draw.

@NonNull Color color

Color applied to the outline when it is drawn

float alpha

Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively

@NonNull DrawStyle style

Specifies whether the outline is stroked or filled in

ColorFilter colorFilter

: ColorFilter to apply to the color when drawn into the destination

@NonNull BlendMode blendMode

: Blending algorithm to be applied to the outline