import java.io.DataInputStream; import javax.microedition.lcdui.Image; public final class g { private static byte[] b = { -119, 80, 78, 71, 13, 10, 26, 10 }; private static byte[] c = { 0, 0, 0, 0, 73, 69, 78, 68, -82, 66, 96, -126 }; public Image a; public static g a(g paramG, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5) { return new g(Image.createImage(a, paramInt1, paramInt2, paramInt3, paramInt4, 0)); } public static g a(String paramString) { byte[] arrayOfByte = new byte[(paramString = new DataInputStream(new Object().getClass().getResourceAsStream(paramString))).readInt() + 12 + 8]; paramString.read(arrayOfByte, 8, arrayOfByte.length - 20); System.arraycopy(b, 0, arrayOfByte, 0, b.length); System.arraycopy(c, 0, arrayOfByte, arrayOfByte.length - 12, c.length); return new g(Image.createImage(arrayOfByte, 0, arrayOfByte.length)); } private g(Image paramImage) { a = paramImage; } public final int a() { return a.getWidth(); } public final int b() { return a.getHeight(); } }