Lines Matching refs:bounds
93 RectF bounds = new RectF(0, 0, view.getWidth(), view.getHeight());
94 matrix.mapRect(bounds);
95 int left = Math.round(bounds.left);
96 int top = Math.round(bounds.top);
97 int right = Math.round(bounds.right);
98 int bottom = Math.round(bounds.bottom);
102 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
151 * @param bounds The bounds of the bitmap in the destination coordinate system (where the
153 * @return A bitmap of the given view or null if bounds has no width or height.
155 public static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) {
157 int bitmapWidth = Math.round(bounds.width());
158 int bitmapHeight = Math.round(bounds.height());
163 matrix.postTranslate(-bounds.left, -bounds.top);