Lines Matching defs:matrix
43 Matrix matrix = new Matrix();
44 matrix.setTranslate(-parent.getScrollX(), -parent.getScrollY());
45 ViewUtils.transformMatrixToGlobal(view, matrix);
46 ViewUtils.transformMatrixToLocal(sceneRoot, matrix);
48 matrix.mapRect(bounds);
56 Bitmap bitmap = createViewBitmap(view, matrix, bounds);
68 * Creates a Bitmap of the given view, using the Matrix matrix to transform to the local
69 * coordinates. <code>matrix</code> will be modified during the bitmap creation.
74 * @param matrix The matrix converting the view local coordinates to the coordinates that
75 * the bitmap will be displayed in. <code>matrix</code> will be modified before
78 * view should be presented. Typically, this is matrix.mapRect(viewBounds);
81 private static Bitmap createViewBitmap(View view, Matrix matrix, RectF bounds) {
89 matrix.postTranslate(-bounds.left, -bounds.top);
90 matrix.postScale(scale, scale);
93 canvas.concat(matrix);