(J2Me)
I'm trying to draw a background image in the gamecanvas to use as a background. It's a pacman game. The background I created in GIMP with in .png format. When I try to load the image I get this...
java.io.UTFDataFormatException: malformed input around byte 25
Code is as follows.
try{
backgroundImg = Image.createImage("/PacmanBackground.png");
}
catch (IOException e) {}
g.drawImage(backgroundImg, 0, 0, Graphics.TOP | Graphics.LEFT);
I'm very new I didn't know whether to put this in game section or beginners
java section :O Any advice appreciated, thanks.