Hi,
I found a weird behavior regarding Texture2D.
according to the selected images, i can (or cannot) create a Texture2D.
here is the code with the exeption:
Code:
Image sprite = Utile.loadImage("/images/myimage.gif");
Image2D image2D = new Image2D( Image2D.RGB, sprite );
Texture2D tex = new Texture2D(image2D);
exception:
startApp threw an Exception
java.lang.IllegalArgumentException:
at javax.microedition.m3g.Texture2D.(+5)
But with another image (still a gif), it works fine…
Does someone know if there are issues between Textures2D and image format??
Regards,
Franck