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
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
2 matches
Mail list logo