BrushPaint.StampingTexture.Builder



Builder for StampingTexture.

For Java developers, use StampingTexture.Builder to construct a StampingTexture with default values, overriding only as needed. For example: StampingTexture layer = StampingTexture.builder().setClientTextureId(id).build();

Summary

Public functions

BrushPaint.StampingTexture

Constructs a TextureLayer from this Builder.

Cmn
BrushPaint.StampingTexture.Builder

Sets the blend mode used for blending this and all previous texture layers with the next one.

Cmn
BrushPaint.StampingTexture.Builder
setClientTextureId(clientTextureId: String)

Sets the client texture ID for this texture layer.

Cmn

Public functions

build

fun build(): BrushPaint.StampingTexture

Constructs a TextureLayer from this Builder.

Throws
IllegalStateException

if clientTextureId, sizeX, and/or sizeY were never set

setBlendMode

fun setBlendMode(blendMode: BrushPaint.TextureLayer.BlendMode): BrushPaint.StampingTexture.Builder

Sets the blend mode used for blending this and all previous texture layers with the next one.

setClientTextureId

fun setClientTextureId(clientTextureId: String): BrushPaint.StampingTexture.Builder

Sets the client texture ID for this texture layer.