[android-developers] Re: replace transparent color bitmap with alpha

2011-04-23 Thread BusyByte
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.TRANSPAREN

[android-developers] replace transparent color bitmap with alpha

2011-04-22 Thread BusyByte
I have been creating a 2d game with surface view. My tileset images have a transparent color and not alpha. However I do have sprites that all have alpha transparency. My tilesets are under directories so they are in the assets so they are not described by xml. I would like to convert my tileset im