Code example for Bitmap

Methods: getConfiggetHeightgetWidthrecycle

0
		channel = tempRandomAccessFile.getChannel();
		return channel.map(MapMode.READ_WRITE, 0, size);
	} 
	 
	private Bitmap clearBitmap(Bitmap bmp) {
		int width = bmp.getWidth();
		int height = bmp.getHeight();
		Config config = bmp.getConfig();
		bmp.recycle();
		return Bitmap.createBitmap(width, height, config);
	} 
 
	private void cleanUp() throws IOException { 
		channel.close();
		tempRandomAccessFile.close();
		tempFile.delete();
	} 
	 
} 
Contextual code suggestions in your IDE  Get Codota for Java