Code example for Matrix

Methods: setValues

0
 
		return rv;
	} 
	 
	public static Matrix matrixInit(float xx, float yx, float xy, float yy, float x0, float y0) {
		android.graphics.Matrix x = new android.graphics.Matrix();
		float[] val = {
			(float)xx,  (float)xy,  (float)x0,
			(float)yx,  (float)yy,  (float)y0,
			(float)0.0, (float)0.0, (float)1.0 
		}; 
		x.setValues(val);
		return x;
	} 
 
	public static void setPaintStyle(Paint p, boolean isStroke) {
		p.setStyle(isStroke ? Paint.Style.STROKE : Paint.Style.FILL);
	} 
	 
	public static void setStrokeCap(Paint p, int cap) {
		switch(cap) {