Home | History | Annotate | Download | only in com.example.android.camera2basic

Lines Matching refs:Matrix

30 import android.graphics.Matrix;
733 * Configures the necessary {@link android.graphics.Matrix} transformation to `mTextureView`.
746 Matrix matrix = new Matrix();
753 matrix.setRectToRect(viewRect, bufferRect, Matrix.ScaleToFit.FILL);
757 matrix.postScale(scale, scale, centerX, centerY);
758 matrix.postRotate(90 * (rotation - 2), centerX, centerY);
760 matrix.postRotate(180, centerX, centerY);
762 mTextureView.setTransform(matrix);