Java tutorial
//package com.java2s; import android.graphics.Matrix; public class Main { private static Matrix configureMatrix(int rotation, int rotationDegrees) { Matrix matrix = new Matrix(); if (rotation != 0f) { matrix.preRotate(rotationDegrees); } return matrix; } }