BrushPaint.StampingTexture



A texture that is "stamped" onto each particle of the stroke, scaled or rotated appropriately to cover the whole particle.

Summary

Nested types

Builder for StampingTexture.

Public companion functions

BrushPaint.StampingTexture.Builder

Returns a new StampingTexture.Builder.

Cmn

Public constructors

StampingTexture(
    clientTextureId: String,
    blendMode: BrushPaint.TextureLayer.BlendMode
)

Creates a new StampingTexture with the specified parameters.

Cmn

Public functions

BrushPaint.StampingTexture
copy(
    clientTextureId: String,
    blendMode: BrushPaint.TextureLayer.BlendMode
)

Creates a copy of this and allows named properties to be altered while keeping the rest unchanged.

Cmn
open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
BrushPaint.StampingTexture.Builder

Returns a Builder with values set equivalent to this.

Cmn
open String
Cmn

Public properties

String
Cmn

Inherited properties

From androidx.ink.brush.BrushPaint.TextureLayer
BrushPaint.TextureLayer.BlendMode

The rule by which the texture layers up to and including this one are combined with the subsequent layer.

Cmn

Public companion functions

Public constructors

StampingTexture

StampingTexture(
    clientTextureId: String,
    blendMode: BrushPaint.TextureLayer.BlendMode = BlendMode.MODULATE
)

Creates a new StampingTexture with the specified parameters.

Parameters
clientTextureId: String

A string identifier of an image that provides the color for a particular pixel for this layer. The coordinates within this image that will be used are determined by the other parameters.

blendMode: BrushPaint.TextureLayer.BlendMode = BlendMode.MODULATE

The method by which the texture layers up to this one (index <= i) are combined with the subsequent texture layer (index == i+1). For the last texture layer, this defines the method by which the texture layer is combined with the brush color (possibly after that color gets per-vertex adjustments).

Public functions

copy

fun copy(
    clientTextureId: String = this.clientTextureId,
    blendMode: BrushPaint.TextureLayer.BlendMode = this.blendMode
): BrushPaint.StampingTexture

Creates a copy of this and allows named properties to be altered while keeping the rest unchanged.

Java callers should use Builder instead.

equals

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

hashCode

open fun hashCode(): Int

toBuilder

fun toBuilder(): BrushPaint.StampingTexture.Builder

Returns a Builder with values set equivalent to this. Java developers, use the returned builder to build a copy of a StampingTexture. Kotlin developers, see copy method.

toString

open fun toString(): String

Public properties

clientTextureId

val clientTextureIdString