BrushPaint.ColorFunction.ReplaceColor



A ColorFunction that ignores the input color and replaces it with the specified color.

Summary

Public companion functions

BrushPaint.ColorFunction.ReplaceColor
withColorIntArgb(colorIntArgb: @ColorInt Int)

Returns a color function that will replace its input color with the given color.

Cmn
BrushPaint.ColorFunction.ReplaceColor

Returns a color function that will replace its input color with the given color.

Cmn

Public functions

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

Public properties

Int

The color that will replace the input color, as a @ColorInt.

Cmn
Long

The color that will replace the input color, as a @ColorLong.

Cmn

Inherited functions

From androidx.ink.brush.BrushPaint.ColorFunction
@ColorInt Int

Transforms the input color into a new color.

Cmn

Public companion functions

withColorIntArgb

fun withColorIntArgb(colorIntArgb: @ColorInt Int): BrushPaint.ColorFunction.ReplaceColor

Returns a color function that will replace its input color with the given color.

withColorLong

fun withColorLong(colorLong: @ColorLong Long): BrushPaint.ColorFunction.ReplaceColor

Returns a color function that will replace its input color with the given color.

Public functions

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

colorIntArgb

val colorIntArgbInt

The color that will replace the input color, as a @ColorInt.

colorLong

val colorLongLong

The color that will replace the input color, as a @ColorLong.