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 ?

Thank you


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.

Need Your Help

using array input names in forms and form validation - CodeIgniter

php codeigniter validation

I have a form which on submit will send its data to two different tables.So I thought writing like this will help me to deal with the posted data easily.

Rewriting WCF RIA Services request URL silverlight url-rewriting wcf-ria-services

I made custom HttpModule which searches for $where param, changes it (replaces DateTime.Now with DateTime.UtcNow) and rewrites path. Simplified module implementation looks like:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.