Learning Android Development

Practical Image PorterDuff Mode Usage in Android

Blending two images to produce the desired image output using PorterDuff

PorterDuff Mode is a software image blending method that is available in many software platforms, which includes Android. It is based on a mathematic model which runs on the pixels of two images to produce a neat output.

Many people have used it to make a circular image as below…

But aside from making circular images, there are so many interesting things that could be achieved using PorterDuff.

For illustration, the blending of the cloud and dragon animations is accomplished by looping through various PorterDeff.Mode. In this piece, we will cover this explanation in more detail and also give more practical examples of its usages.

The API Usage

--

--