Code example for Matrix

Methods: invert

0
 
    Matrix mRotateToScreen = new Matrix();
    Matrix mToOrig;
    private void calcScreenMapping() { 
        mToOrig = getScreenToImageMatrix(true);
        mToOrig.invert(mRotateToScreen);
    } 
 
    @Override 
    public void onDraw(Canvas canvas) {
        super.onDraw(canvas);
        calcScreenMapping(); 
 
    } 
 
}