Lines Matching refs:bounds
81 final Rect bounds = getBounds();
82 if (!isVisible() || bounds.isEmpty()) {
97 * Draw the bitmap onto the canvas at the current bounds taking into account the current scale.
101 final Rect bounds = getBounds();
106 // Fit bitmap to bounds.
107 final float boundsWidth = (float) bounds.width();
108 final float boundsHeight = (float) bounds.height();
112 // Translate bitmap to dst bounds.
113 mMatrix.postTranslate(bounds.left, bounds.top);
117 canvas.drawCircle(bounds.centerX(), bounds.centerY(), bounds.width() / 2, mBitmapPaint);
120 final float radius = bounds.width() / 2f - mBorderWidth / 2;
121 canvas.drawCircle(bounds.centerX(), bounds.centerY(), radius, mBorderPaint);