BrushPaint.StampingTexture
-
Cmn
class BrushPaint.StampingTexture : BrushPaint.TextureLayer
| kotlin.Any | ||
| ↳ | androidx.ink.brush.BrushPaint.TextureLayer | |
| ↳ | androidx.ink.brush.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 |
Public companion functions |
||
|---|---|---|
BrushPaint.StampingTexture.Builder |
builder()Returns a new |
Cmn
|
Public constructors |
|
|---|---|
StampingTexture(Creates a new |
Cmn
|
Public functions |
||
|---|---|---|
BrushPaint.StampingTexture |
copy(Creates a copy of |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
Cmn
|
BrushPaint.StampingTexture.Builder |
Returns a |
Cmn
|
open String |
toString() |
Cmn
|
Public properties |
||
|---|---|---|
String |
The client texture ID for this texture layer. |
Cmn
|
Inherited functions |
|||
|---|---|---|---|
|
Inherited properties |
|||
|---|---|---|---|
|
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.
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.