Lines Matching refs:bitmap
20 import android.graphics.Bitmap;
57 // The current bitmap being displayed.
64 // ImageViewTouchBase will pass a Bitmap to the Recycler if it has finished
65 // its use of that Bitmap.
67 public void recycle(Bitmap b);
120 public void setImageBitmap(Bitmap bitmap) {
121 setImageBitmap(bitmap, 0);
124 private void setImageBitmap(Bitmap bitmap, int rotation) {
125 super.setImageBitmap(bitmap);
131 Bitmap old = mBitmapDisplayed.getBitmap();
132 mBitmapDisplayed.setBitmap(bitmap);
135 if (old != null && old != bitmap && mRecycler != null) {
146 // This function changes bitmap, reset base matrix according to the size
147 // of the bitmap, and optionally reset the supplementary matrix.
148 public void setImageBitmapResetBase(final Bitmap bitmap,
150 setImageRotateBitmapResetBase(new RotateBitmap(bitmap), resetSupp);
153 public void setImageRotateBitmapResetBase(final RotateBitmap bitmap,
160 setImageRotateBitmapResetBase(bitmap, resetSupp);
166 if (bitmap.getBitmap() != null) {
167 getProperBaseMatrix(bitmap, mBaseMatrix);
168 setImageBitmap(bitmap.getBitmap(), bitmap.getRotation());
259 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) {
263 float w = bitmap.getWidth();
264 float h = bitmap.getHeight();
273 matrix.postConcat(bitmap.getRotateMatrix());