title: android how to rotate canvas rect
body: <p>i create a rectangle in a specific size, and now i want rotate it to 45 degree, i used canvas.rotate, matrix, but not working. how is the proper way to rotate canvas in android? and i'm curios about Path.Direction.CW, is it used for rotation? but i don't see any rotation function in Path()</p>
  
  <pre><code>    paint.setAntiAlias(true);
      paint.setStrokeWidth(2);
      paint.setColor(Color.BLUE);
      paint.setAlpha(75);
  
      Path path = new Path();
      path.addRect(166, 748, 314, 890, Path.Direction.CW);
      canvas.rotate(45);
      canvas.drawPath(path, paint);
  </code></pre>