Exemplo n.º 1
0
 public void draw(Shape s) {
   PathIterator pi = s.getPathIterator(null);
   Path path = convertAwtPathToAndroid(pi);
   // Draw the outline, don't fill
   paint.setStyle(Style.STROKE);
   canvas.drawPath(path, paint);
 }
Exemplo n.º 2
0
 public void fill(Shape s) {
   PathIterator pi = s.getPathIterator(null);
   Path path = convertAwtPathToAndroid(pi);
   // Draw the outline and fill
   paint.setStyle(Style.FILL_AND_STROKE);
   canvas.drawPath(path, paint);
   ;
 }