image.createimage

Image.createImage problem in J2ME

Hi All, I tried this on J2ME try { Image immutableThumb = Image.createImage( temp, 0, temp.length); } catch (Exception ex) { System.out.println(ex); } I hit this error: java.lang.IllegalArgumentException: How do I solve this? ...

Problems with createImage(int width, int height)

I have the following code, which is run every 10ms as part of a game: private void gameRender() { if(dbImage == null) { //createImage() returns null if GraphicsEnvironment.isHeadless() //returns true. (java.awt.GraphicsEnvironment) dbImage = createImage(PWIDTH, PHEIGHT); if(dbImage == null) ...