[null, {"document_url": "https://riptutorial.com/android/topic/377/porterduff-mode", "unformatted_src": "https://i.stack.imgur.com/qjlRN.png", "src": "https://i.stack.imgur.com/qjlRN.png", "formatted_filename": "qjlRN", "alt_text": "Porter duff modes"}, null]
Android PorterDuff Mode

PorterDuff Mode

Download android eBook


PorterDuff is described as a way of combining images as if they were "irregular shaped pieces of cardboard" overlayed on each other, as well as a scheme for blending the overlapping parts


"Porter Duff" in itself is an alpha compositing technique named after a paper by Thomas Porter and Tom Duff.

To summarize, the technique takes two images with alpha channel and generates the output image by combining pixels values of two images. The various combining modes result in different output image. For example, in following image, blue shape (source, existing pixels) is combined with Yellow shape (destination, new pixels) in different modes: 

817 Contributors: 6


