BlendMode

@RequiresApi(value = 31)
data class BlendMode(val dst: LithoRenderEffect, val src: LithoRenderEffect, val blendMode: BlendMode) : LithoRenderEffect

A LithoRenderEffect that is a composition of 2 other LithoRenderEffect instances combined by the specified android.graphics.BlendMode

Parameters

dst

The Dst pixels used in blending

src

The Src pixels used in blending

blendMode

The android.graphics.BlendMode to be used to combine colors from the two LithoRenderEffects

See RenderEffect.createBlendModeEffect

Constructors

Link copied to clipboard
constructor(dst: LithoRenderEffect, src: LithoRenderEffect, blendMode: BlendMode)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun toRenderEffect(): RenderEffect

Creates a RenderEffect instance from this LithoRenderEffect.