| Start |
|---|
| Creating a PorterDuff ColorFilter
The above filter will tint the non-transparent pixels to blue color. The color filter can be applied to a It can be applied to an Also, it can be applied to a |
| Creating a PorterDuff XferMode An Now we have a blue tint paint. Any shape drawn will tint the already existing, non-transparent pixels blue in the area of the shape. |
Apply a radial mask (vignette) to a bitmap using PorterDuffXfermode Remarks"Porter Duff" in itself is an alpha compositing technique (opens new window) named after a paper by Thomas Porter and Tom Duff. (opens new window) 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: |
Read Article
https://develop.horje.com/learn/1434/reference