Пример #1
0
 public static Bitmap getImg(String name, boolean bol) {
   String path = "/img/" + name;
   InputStream bitmapin = img.getClass().getResourceAsStream(path);
   Bitmap bitmap = null;
   if (bitmaps.get(name) != null) {
     bitmap = bitmaps.get(name).bitmap;
   } else {
     bitmap = BitmapFactory.decodeStream(bitmapin);
     bitmaps.put(name, new Fbitmap(bitmap, bol));
   }
   return bitmap;
 }
Пример #2
0
 public static Bitmap getImg(String name) {
   String path = "/cstio/ufdia/commons/res/" + name;
   InputStream bitmapin = img.getClass().getResourceAsStream(path);
   return BitmapFactory.decodeStream(bitmapin);
 }