BrushPaint.StampingTexture


public final class BrushPaint.StampingTexture extends BrushPaint.TextureLayer


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 constructors

StampingTexture(
    @NonNull String clientTextureId,
    @NonNull BrushPaint.TextureLayer.BlendMode blendMode
)

Creates a new StampingTexture with the specified parameters.

Public methods

static final @NonNull BrushPaint.StampingTexture.Builder

Returns a new StampingTexture.Builder.

final @NonNull BrushPaint.StampingTexture
copy(
    @NonNull String clientTextureId,
    @NonNull BrushPaint.TextureLayer.BlendMode blendMode
)

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

boolean
equals(Object other)
final @NonNull String
int
final @NonNull BrushPaint.StampingTexture.Builder

Returns a Builder with values set equivalent to this.

@NonNull String

Inherited methods

From androidx.ink.brush.BrushPaint.TextureLayer
final @NonNull BrushPaint.TextureLayer.BlendMode

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

Public constructors

StampingTexture

Added in 1.1.0-alpha03
public StampingTexture(
    @NonNull String clientTextureId,
    @NonNull BrushPaint.TextureLayer.BlendMode blendMode
)

Creates a new StampingTexture with the specified parameters.

Parameters
@NonNull String clientTextureId

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.

@NonNull BrushPaint.TextureLayer.BlendMode blendMode

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 methods

builder

Added in 1.1.0-alpha03
public static final @NonNull BrushPaint.StampingTexture.Builder builder()

Returns a new StampingTexture.Builder.

copy

Added in 1.1.0-alpha03
public final @NonNull BrushPaint.StampingTexture copy(
    @NonNull String clientTextureId,
    @NonNull BrushPaint.TextureLayer.BlendMode blendMode
)

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

Java callers should use Builder instead.

equals

public boolean equals(Object other)

getClientTextureId

Added in 1.1.0-alpha03
public final @NonNull String getClientTextureId()

hashCode

public int hashCode()

toBuilder

Added in 1.1.0-alpha03
public final @NonNull BrushPaint.StampingTexture.Builder toBuilder()

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

public @NonNull String toString()