Added in API level 1
PorterDuffColorFilter
open class PorterDuffColorFilter : ColorFilter
| kotlin.Any | ||
| ↳ | android.graphics.ColorFilter | |
| ↳ | android.graphics.PorterDuffColorFilter | |
A color filter that can be used to tint the source pixels using a single color and a specific Porter-Duff composite mode.
Summary
| Public constructors | |
|---|---|
PorterDuffColorFilter(color: Int, mode: PorterDuff.Mode)Create a color filter that uses the specified color and Porter-Duff mode. |
|
| Public methods | |
|---|---|
| open Boolean | |
| open Int |
hashCode() |
Public constructors
PorterDuffColorFilter
Added in API level 1
PorterDuffColorFilter(
color: Int,
mode: PorterDuff.Mode)
Create a color filter that uses the specified color and Porter-Duff mode.
| Parameters | |
|---|---|
color |
Int: The ARGB source color used with the specified Porter-Duff mode |
mode |
PorterDuff.Mode: The porter-duff mode that is applied This value cannot be null. |
See Also
Public methods
equals
Added in API level 1
open 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. |
hashCode
Added in API level 1
open fun hashCode(): Int
| Return | |
|---|---|
Int |
a hash code value for this object. |