private Bitmap rotateImage(Bitmap src, float degree) {
        // create new matrix
        Matrix matrix = new Matrix();
        // setup rotation degree
        matrix.postRotate(degree);
        Bitmap bmp = Bitmap.createBitmap(src, 0, 0, src.getWidth(),
                src.getHeight(), matrix, true);
        return bmp;
    }
private Bitmap rotateImage(Bitmap src, float degree) {
        
        Matrix matrix = new Matrix();
        
        matrix.postRotate(degree);
        Bitmap bmp = Bitmap.createBitmap(src, 0, 0, src.getWidth(),
                src.getHeight(), matrix, true);
        return bmp;
    }
private Bitmap rotateImage ( Bitmap src , float degree ) { // create new matrix Matrix matrix = new Matrix ( ) ; // setup rotation degree matrix . postRotate ( degree ) ; Bitmap bmp = Bitmap . createBitmap ( src , 0 , 0 , src . getWidth ( ) , src . getHeight ( ) , matrix , true ) ; return bmp ; }
Thong added for rotate
Thong added for rotate