I have some 2d character sprites, with a greenish background, that I'm trying to display, without the background.
Since the background is a consistent color, I assumed there'd be a way to filter it out, thereby making the background transparent. I wonder if I'm right in assuming this... Here is my code: Drawable d = mContext.getResources().getDrawable(R.drawable.queen); d.setColorFilter(Color.parseColor("#585C38"), PorterDuff.Mode.DST_IN); d.setBounds(0, 0, 100, 100); d.draw(canvas); I've tried all of the PorterDuff modes and none of them seem to do the right thing. In fact, it looks like the color is ignored all together. Any ideas what I might be doing wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---