Created
October 15, 2014 02:57
-
-
Save MrBenJ/efb7b1d05bf7c837f956 to your computer and use it in GitHub Desktop.
Pre-Scale Bitmaps
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
originalImage = Bitmap.createScaledBitmap( | |
originalImage // Bitmap to resize | |
view.getWidth(), // new width | |
view.getHeight(), // new height | |
true); // Enable bilinear filtering |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment