Home
last modified time | relevance | path

Searched refs:mBitmapBounds (Results 1 – 1 of 1) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/
DIconView.java49 private Rect mBitmapBounds; field in IconView
167 return mBitmapBounds; in getBitmapBounds()
181 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, in computeBitmapBounds()
185 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth()/2, getHeight()); in computeBitmapBounds()
187 mBitmapBounds = new Rect(mMargin/2, mMargin, getWidth() - mMargin/2, getHeight()); in computeBitmapBounds()
202 canvas.clipRect(mBitmapBounds); in onDraw()
207 new RectF(mBitmapBounds), Matrix.ScaleToFit.CENTER); in onDraw()
209 float scaleWidth = mBitmapBounds.width() / (float) mBitmap.getWidth(); in onDraw()
210 float scaleHeight = mBitmapBounds.height() / (float) mBitmap.getHeight(); in onDraw()
212 float dx = (mBitmapBounds.width() - (mBitmap.getWidth() * scale)) / 2f; in onDraw()
[all …]