我想繪製一個透明的圓形,但它只是不起作用。如何畫一個透明的圓?
當我繪製一個位圖,它的工作原理,但圓不透明。
這裏是我的代碼簡稱:
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
嘗試調用'的setColor(0x77ff0000)'(左右)之前'drawCycle'。 – Knickedi