J'essaie de dessiner un cercle transparent, mais ça ne marche pas. Lorsque je dessine un bitmap, cela fonctionne, mais un cercle ne devient pas transparent.Comment dessiner un cercle transparent?
Voici mon code en bref:
Paint paint = new Paint();
paint.setAlpha(125);
canvas.drawBitmap(bitmap, sourceRect, destRect, paint); // this works fine
canvas.drawCircle(x, y, radius, paint); // the circle is drawn but not transparent
Essayez d'appeler 'setColor (0x77ff0000)' (ou si) avant 'drawCycle'. – Knickedi