Skip to content
Snippets Groups Projects
Commit d98a37a3 authored by Luboš Horáček's avatar Luboš Horáček
Browse files

#9 Verically flipped screenshots

parent ff1f938a
Branches
Tags
No related merge requests found
......@@ -45,7 +45,7 @@ public class AndroidLauncher extends AndroidApplication {
Bitmap sb = Bitmap.createBitmap(screen, width, height, Bitmap.Config.RGB_565);
// flip bitmap vertically
Matrix matrixMirror = new Matrix();
matrixMirror.preScale(-1.0f, 1.0f);
matrixMirror.preScale(1.0f, -1.0f);
sb = Bitmap.createBitmap(sb, 0, 0, sb.getWidth(), sb.getHeight(), matrixMirror, false);
// overvrite file
FileOutputStream fOut = new FileOutputStream(file);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment