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); } } }
/** 清空框架临时资源 */ public static void destroy() { GraphicsUtils.destroy(); // ZipResource.destroy(); Resources.destroy(); LSystem.gc(); }
public Chara(final String fileName, final int x, final int y, int w) { this(GraphicsUtils.loadNotCacheImage(fileName), x, y, w); }