Android AvoidXfermode is deprecated since API 16, is there a replacement?
I need to draw a bitmap on another bitmap, but I only want to draw on top of pixels that have a specific color (transparent in this case) . I understand that AvoidXfermode could do that, but it is deprecated since API 16. Is there a different method to this now ?
I received the right answer in my private inbox, so I will share it here: There is no replacement method. AvoidXfermode was deprecated because it is not supported in hardware. However, it can still be used when drawing on bitmaps.
Another method, of course, is to go pixel by pixel, and replace the ones with a specific color, but that's not what I was looking for.