import android.graphics.*;
public class 图形{
public static void 画矩形(int x,int y,int width,int height,Canvas canvas,Paint paint){
canvas.drawRect(x,y,x+width,y+height,paint);
}
public static void 旋转图片(Canvas canvas,Bitmap bitmap,float 角度,int x,int y,int x1,int y1){
Matrix m=new Matrix();
m.postRotate(角度,x,y);
m.postTranslate(x1,y1);
canvas.drawBitmap(bitmap,m,null);
}
}