Code example for Bitmap

Methods: getHeightgetWidthisRecycled

0
		} 
		return true; 
	} 
 
	private void shift(final int dx, final int dy) {
		if (mBitmap == null || mBitmap.isRecycled()) return;
 
		final int w = (int) (getWidth() / mZoomFactor);
		final int h = (int) (getHeight() / mZoomFactor);
		final int bw = mBitmap.getWidth();
		final int bh = mBitmap.getHeight();
 
		final int newDx, newDy;
 
		if (w < bw) {
			final int delta = (bw - w) / 2;
			newDx = Math.max(-delta, Math.min(delta, mDx + dx));
		} else { 
			newDx = mDx;
		} 
Contextual code suggestions in your IDE  Get Codota for Java