二、圖像旋轉 Android中提供了對Bitmap進行矩陣旋轉的操作,參見Bitmap提供的靜態(tài)createBitmap方法. public static Bitmap createBitmap (Bitmap source, int x, int y, int width, int height, Matrix m, boolean filter) IllegalArgumentException if the x, y, width, height values are outside of the dimensions of the source bitmap. 到此這兩個問題理論上都解決了,開始實際操作一下吧,參照以下代碼。