Home | History | Annotate | Download | only in camera

Lines Matching refs:MATRIX

21 import android.graphics.Matrix;
39 // This matrix is recomputed when we go from the thumbnail image to
41 protected Matrix mBaseMatrix = new Matrix();
46 // This matrix remains the same when we go from the thumbnail image
48 protected Matrix mSuppMatrix = new Matrix();
50 // This is the final matrix which is computed as the concatentation
51 // of the base matrix and the supplementary matrix.
52 private final Matrix mDisplayMatrix = new Matrix();
54 // Temporary buffer used for getting the values out of a matrix.
146 // This function changes bitmap, reset base matrix according to the size
147 // of the bitmap, and optionally reset the supplementary matrix.
191 Matrix m = getImageViewMatrix();
241 setScaleType(ImageView.ScaleType.MATRIX);
244 protected float getValue(Matrix matrix, int whichValue) {
245 matrix.getValues(mMatrixValues);
249 // Get the scale factor out of the matrix.
250 protected float getScale(Matrix matrix) {
251 return getValue(matrix, Matrix.MSCALE_X);
258 // Setup the base matrix so that the image is centered and scaled properly.
259 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) {
265 matrix.reset();
273 matrix.postConcat(bitmap.getRotateMatrix());
274 matrix.postScale(scale, scale);
276 matrix.postTranslate(
281 // Combine the base matrix and the supp matrix to make the final matrix.
282 protected Matrix getImageViewMatrix() {
283 // The final matrix is computed as the concatentation of the base matrix
284 // and the supplementary matrix.
292 // Sets the maximum zoom, which is a scale relative to the base matrix. It
387 Matrix tmp = new Matrix(mSuppMatrix);