public void resetDialogBG() {
   if (fileName != null && !fileName.equals("")) {
     if (fileName.contains(".9.")) {
       ninePatchImg = new NinePatchImage(fileName);
       img = ninePatchImg.createImage(scaledWidth, scaledHeight);
       // img1 = ninePatchImg.createImage(320 - 8, 320 - 8);
     } else {
       img = GraphicsUtils.loadImage(fileName, true);
     }
   }
 }
Esempio n. 2
0
 /** 清空框架临时资源 */
 public static void destroy() {
   GraphicsUtils.destroy();
   // ZipResource.destroy();
   Resources.destroy();
   LSystem.gc();
 }
Esempio n. 3
0
 public Chara(final String fileName, final int x, final int y, int w) {
   this(GraphicsUtils.loadNotCacheImage(fileName), x, y, w);
 }