I need to cut Bitmap1 from Bitmap2..
For example, i have Bitmap1 (decode from Resources drawable) and Bitmap2 (decode from Resources drawable too).
Bitmap1:
| |
> <
| |
Bitmap2:
|xxx|
|xxx|
|xxx|
I need result:
|xxx|
>x<
|xxx|
Can somebody give me sample code?
Android.
You could load both bitmaps and use
PorterDuffXfermodeandDST_INto mask “Bitmap2”, sort of like this: