I was able to get it to work with the following code:

final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
final int transparentColor = Color.parseColor("#" + imageTrans);
Xfermode mode = new AvoidXfermode(transparentColor, 0, Mode.TARGET);
paint.setXfermode(mode);
paint.setColor(Color.TRANSPARENT);

final Bitmap temp = imageBitmap.copy(Bitmap.Config.ARGB_8888, true);
final Canvas canvas = new Canvas(temp);
canvas.drawBitmap(imageBitmap, 0.0f, 0.0f, paint);
tilesetBuilder.imageBitmap(temp);
imageBitmap.recycle();
imageBitmap = null;

Thanks for the help,
Shawn

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to