Code example for Canvas

Methods: getMatrix

0
        mRh.add((RenderingHints) hints);
    } 
 
    public float[] getMatrix() { 
        float[] f = new float[9];
        mC.getMatrix().getValues(f);
        return f;
    } 
 
    /** 
     *  
     * @return a Matrix in Android format 
     */ 
    public float[] getInverseMatrix() { 
        AffineTransform af = new AffineTransform(createAWTMatrix(getMatrix()));
        try { 
            af = af.createInverse();
        } catch (NoninvertibleTransformException e) {
        } 
        return createMatrix(af);
    }