Code example for Bitmap

Methods: copysetImageBitmap

0
		return newBmp;
	} 
	 
	protected void updatePreview() { 
		if (originalPreviewBitmap != null)
			getPreview().setImageBitmap(applyColorChangerToPreview());
	} 
	 
	private Bitmap applyColorChangerToPreview() {
		currentPreviewBitmap = copyBitmap(originalPreviewBitmap);
		applyColorChanger(currentPreviewBitmap);
		return currentPreviewBitmap;
	} 
	 
	private Bitmap copyBitmap(Bitmap bmp) {
		return bmp.copy(Config.ARGB_8888, true);
	} 
	 
	protected abstract void applyColorChanger(Bitmap bmp);
	 
	protected abstract void setupView();