最新回答 / Keldian2016
private int[] mm = { R.drawable.m1, R.drawable.m2, R.drawable.m3, R.drawable.m4, R.drawable.mm };把多個圖片資源放入drawable中,聲明一個數組存儲。private void initBitmap() {// if (mBitmap == null) { mBitmap = BitmapFactory.decodeResource(getResources(), mm[(int) (Mat...
2015-02-25
已采納回答 / hyman
你好,Bitmap.createBitmap(bitmap, x, y, pieceWidth, pieceWidth)你傳入的參數y +?pieceWidth已經超過你的bitmap的高度了,檢查下代碼。
2015-02-03