Android examples for android.graphics:Matrix
transform Matrix
//package com.java2s; import android.graphics.Matrix; public class Main { public static void transform(Matrix mat, float x, float y, float degrees, float scale, int width, int height) { mat.setRotate(degrees);/* ww w.j a va 2s . c om*/ mat.preTranslate(-width / 2.f, -height / 2.f); mat.postScale(scale, scale); mat.postTranslate(x, y); } }