Created
March 1, 2012 19:26
-
-
Save arpit/1952476 to your computer and use it in GitHub Desktop.
Android Image Util
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
private Bitmap getBitmapFromAsset(String strName) throws IOException | |
{ | |
AssetManager assetManager = getAssets(); | |
InputStream istr = assetManager.open(strName); | |
Bitmap bitmap = BitmapFactory.decodeStream(istr); | |
return bitmap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment