|
From: Robert H. <ro...@na...> - 2003-09-03 05:54:11
|
Hello, I've been using MicroEmulator as an applet for a couple months, and it works great! I just ran into a problem today though that I can't seem to replicate on the Sun emulator. I'm using the createImage method with this signature : createImage(byte[] imageData, int imageOffset, int imageLength) I believe I am calling everything correctly, as it works in both the emulators that come with the Sun 1.04 and 2.0 WTK. Here's the exception and relevant part of the stack trace : java.lang.IllegalArgumentException: java.io.IOException: Error decoding PNG image at com.barteo.emulator.device.j2se.J2SEDevice.createImage(J2SEDevice.java:120) at javax.microedition.lcdui.Image.createImage(Image.java:56) I've checked and double checked that the PNG is OK (it does work in the other emulator after all). Other things I've tried without success : * reduced image palette to 16 colors * reduced image to grayscale * tried a smaller image (logo) that's loaded from the jar Any help would be appreciated! Thanks, Rob Helmer |