I'm trying to make a image as follows:-
try
{
strom = Image.createImage("stromB.png");
map0 = Image.createImage("map0.png");
}
catch (Exception e)
{
System.out.println("image creatino faild");
System.out.println(e.getMessage());
}
strom
works fine but map0
always throw an exception. My guess is that the size is bigger and may be that's why.
- How can I use a larger png image in the midlet?
- Are there any limitation for the midlet?
- What is the maximum size I can use for a midlet?
map0 throw exception may be because of large size, use following method to larger images to resize it according to screen size