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

BlendFactor Enum

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.

Signature

enum BlendFactor : Enum<BlendFactor> 

Enumeration Constants

MemberDescription
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

Properties

factor : Int
[Get]
Signature
val factor: Int

Companion Object

Companion Object Functions

fromInt ( factor )
Returns the blend factor corresponding to the given integer value.
Signature
fun fromInt(factor: Int): BlendFactor
Parameters
factor: Int
  the integer value of the blend factor
Returns
  the blend factor corresponding to the given integer value
Throws
IllegalArgumentException
  if the given integer value does not correspond to a valid blend factor
Did you find this page helpful?