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 | |
|---|---|
BlendModeColorFilter(color: Int, mode: BlendMode) |
|
| Public methods | |
|---|---|
| Boolean | |
| Int |
getColor()Returns the ARGB color used to tint the source pixels when this filter is applied. |
| BlendMode! |
getMode()Returns the Porter-Duff mode used to composite this color filter's color with the source pixel when this filter is applied. |
| Int |
hashCode() |
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.
See Also
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.
See Also