Pomocná třída pro načítání obrázků z assets.
More...
Pomocná třída pro načítání obrázků z assets.
Definition at line 14 of file ImgLoader.java.
mhr.app.utils.ImgLoader.ImgLoader |
( |
Context |
context | ) |
|
|
inline |
Bitmap mhr.app.utils.ImgLoader.loadAndroidBitmap |
( |
String |
path | ) |
|
|
inline |
Načte bitmapu z assets se zadanou cestou.
- Parameters
-
- Returns
Definition at line 29 of file ImgLoader.java.
{
InputStream is = null;
Bitmap res = null;
try {
BitmapFactory.Options o = new BitmapFactory.Options();
o.inScaled = false;
res = BitmapFactory.decodeStream(is, null, o);
} catch (IOException e) {
return null;
} finally {
if (is != null) {
try {
is.close();
} catch (IOException e) {
return null;
}
}
}
return res;
}
AssetManager mhr.app.utils.ImgLoader.assetManager |
|
protected |
Context mhr.app.utils.ImgLoader.context |
|
protected |
The documentation for this class was generated from the following file: