Posted By

on 03/31/10


Tagged


Versions (?)

Example of Path


 / Published in: Java
 

from "Hello Android 2nd Edition" (ISBN: 1-934356-49-2)

  1. circle = new Path();
  2. circle.addCircle(150, 150, 100, Direction.CW);
  3.  
  4. cPaint.setColor(Color.LTGRAY);
  5. private static final String QUOTE = "Now is the time for all " +
  6. "good men to come to the aid of their country.";
  7. canvas.drawPath(circle, cPaint);
  8. canvas.drawTextOnPath(QUOTE, circle, 0, 20, tPaint);

Report this snippet  

You need to login to post a comment.