Code example for MappedByteBuffer

Methods: position

0
	        if(reduceColor){
	        	mutable = Bitmap.createBitmap(width, height, Config.RGB_565);
	        }else{ 
	        	mutable = Bitmap.createBitmap(width, height, Config.ARGB_8888);
	        } 
	        map.position(0);
	        mutable.copyPixelsFromBuffer(map);
 
	        channel.close();
	        randomAccessFile.close();
	    } catch (Exception e) {
	        e.printStackTrace();
	    } 
	    return mutable;
	} 
 
	/** 
	 * メモリを使用して、MutableなBitmapを取得する 
	 * @param bitmap 
	 * @param reduceColor 
	 * @return