여러 간단한 형태에 의해 정의 된 복잡한 모양을 그릴 원 및 선. android canvas로 이것을 만드는 적절한 방법은 무엇입니까?안드로이드 캔버스 내가 안드로이드 캔버스에이 모양과 비슷한 무언가를 그리려고
지금 smith324로 PorterDuff을 사용하고 UPDATE 제안 :
* 참고 : 코드를 약간 명확성을 위해 단순화.
darkPaint = new Paint();
darkPaint.setColor(Color.rgb(50, 50, 50));
lightPaint = new Paint();
lightPaint.setColor(Color.rgb(200, 200, 200));
atopPaint= new Paint(GameDrawingPanel.darkPaint.getColor());
atopPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_ATOP));
atopPaint.setAntiAlias(true);
atopPaint.setStrokeWidth(2);
_boardCanvas.drawCircle(x, y, radius, darkPaint);
_boardCanvas.drawCircle(x, y, radius_small, lightPaint);
_boardCanvas.drawRect(0,0,height,width,atopPaint);
사용하십시오 [태그 : 안드로이드 - 캔버스] 네이티브 자바 안드로이드 캔버스에 대해 이야기 할 때 : 안드로이드 기기에 HTML5 캔버스에 대해 이야기 할 때 [태그 캔버스] –