Code example for Matrix

Methods: createBitmappreScale

0
            return "flip"; 
        } 
 
        @Override 
        public Bitmap transform(Bitmap b) {
            Matrix m = new Matrix();
            m.preScale(-1, 1);
 
            return Bitmap.createBitmap(b, 0, 0, b.getWidth(), b.getHeight(), m, true);
        } 
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java