# PorterDuff

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# PorterDuff

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/PorterDuff "View this page in Java")  

```
open class PorterDuff
```

|---|------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                             ||
| ↳ | [android.graphics.PorterDuff](https://developer.android.com/reference/kotlin/android/graphics/PorterDuff#) |

This class contains the list of alpha compositing and blending modes that can be passed to[PorterDuffXfermode](https://developer.android.com/reference/kotlin/android/graphics/PorterDuffXfermode), a specialized implementation of[Paint](https://developer.android.com/reference/kotlin/android/graphics/Paint)'s[transfer mode](https://developer.android.com/reference/kotlin/android/graphics/Paint#setXfermode(android.graphics.Xfermode)). All the available modes can be found in the[Mode](https://developer.android.com/reference/kotlin/android/graphics/PorterDuff.Mode)enum.
Consider using[BlendMode](https://developer.android.com/reference/kotlin/android/graphics/BlendMode)instead as it provides a wider variety of tinting options

## Summary

|                                                                                                                       Nested classes                                                                                                                       ||
|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | [Mode](https://developer.android.com/reference/kotlin/android/graphics/PorterDuff.Mode) The name of the parent class is an homage to the work of Thomas Porter and Tom Duff, presented in their seminal 1984 paper titled "Compositing Digital Images". |

|                                                 Public constructors                                                 ||
|------------------------------------------------------------------------------------------------------------------|---|
| [PorterDuff](https://developer.android.com/reference/kotlin/android/graphics/PorterDuff#PorterDuff())`()` <br /> |

## Public constructors

### PorterDuff

```
PorterDuff()
```