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 旋轉(zhuǎn)圖片(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);
}
}