Added in API level 29

BlendModeColorFilter

class BlendModeColorFilter : ColorFilter
kotlin.Any
   ↳ android.graphics.ColorFilter
   ↳ android.graphics.BlendModeColorFilter

A color filter that can be used to tint the source pixels using a single color and a specific BlendMode.

Summary

Public constructors

Public methods
Boolean
equals(other: Any?)

Int

Returns the ARGB color used to tint the source pixels when this filter is applied.

BlendMode!

Returns the Porter-Duff mode used to composite this color filter's color with the source pixel when this filter is applied.

Int

Public constructors

BlendModeColorFilter

Added in API level 29
BlendModeColorFilter(
    color: Int,
    mode: BlendMode)
Parameters
mode BlendMode: This value cannot be null.

Public methods

equals

Added in API level 29
fun equals(other: Any?): Boolean
Parameters
obj the reference object with which to compare.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getColor

Added in API level 29
fun getColor(): Int

Returns the ARGB color used to tint the source pixels when this filter is applied.

getMode

Added in API level 29
fun getMode(): BlendMode!

Returns the Porter-Duff mode used to composite this color filter's color with the source pixel when this filter is applied.

hashCode

Added in API level 29
fun hashCode(): Int
Return
Int a hash code value for this object.