Created
December 13, 2015 14:24
-
-
Save Hajto/2a1258fc950653f7b237 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Bitmap flipHorizontallu(Bitmap bmp){ | |
Matrix matrix = new Matrix(); | |
matrix.postScale(-1.0f, 1.0f); | |
return Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), matrix, true); | |
} | |
public static Bitmap flipVertically(Bitmap bmp){ | |
Matrix matrix = new Matrix(); | |
matrix.postScale(1.0f, -1.0f); | |
return Bitmap.createBitmap(bmp, 0, 0, bmp.getWidth(), bmp.getHeight(), matrix, true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment