API reference
API reference
Select your platform
No SDKs available
No versions available

BlendFactor

BlendFactor

enum BlendFactor : Enum<BlendFactor>
These coefficients are used to calculate the final color and alpha values of a blended layer. "Source" refers to the layer you are currently compositing. "Destination" refers to whatever is already in the buffer.

Entries

NameSummary
ZERO

This coefficient will result in a value of 0.
ONE

This coefficient will leave the value unchanged.
SOURCE_ALPHA

Will multiply value with the source alpha
ONE_MINUS_SOURCE_ALPHA

Will multiply the value with the inverse of source alpha
DESTINATION_ALPHA

Will multiply value with destination alpha
ONE_MINUS_DESTINATION_ALPHA

Will multiply value with 1 minus the destination alpha

Types

NameSummary
Companion
object Companion

Properties

NameSummary
factor
val factor: Int
name
val name: String
ordinal
val ordinal: Int

Functions

NameSummary
valueOf
fun valueOf(value: String): BlendFactor

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values
fun values(): Array<BlendFactor>

Returns an array containing the constants of this enum type, in the order they’re declared.

Companion

object Companion

Functions

NameSummary
fromInt
fun fromInt(factor: Int): BlendFactor

Returns the blend factor corresponding to the given integer value.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon