Android 字 成 圆

@Override
    protected void onDraw(Canvas canvas) {
        Paint paint = new Paint();
        paint.setTextSize(50);
        paint.setAntiAlias(true);
        paint.setColor(Color.WHITE);
        Path path = new Path();
        path.addCircle(200, 200, 100, Direction.CCW);
        canvas.drawTextOnPath("draw text circle, 字画成圆", path, 0, 0, paint);
    }

 

效果如下:

posted @ 2012-06-13 16:37  wsjisji  阅读(321)  评论(0编辑  收藏  举报