Hello,
According to this post (http://www.kalmeo.org/projects/kuix/snippets/show/8), I can display a picture generated with the javax.microedition.lcdui.Image class. I need to display a part of an existing image. For that, I use the static method createImage() (see http://java.sun.com/javame/reference/apis/jsr118/javax/microedition/lcdui/Image.html#createImage(javax.microedition.lcdui.Image,%20int,%20int,%20int,%20int,%20int)). As you can see in the previous link, the createImage needs several arguments, and more specially 'width' and 'height'. They represent the size of the trimmed image I want to display.
The problem is that I don't have those arguments because I want that the trimmed image fills the space I reserved for it.
Here is a sample of my XML file :
<screen style="layout:borderlayout" shortcuts="up=moveNorth|right=moveEast|down=moveSouth|left=moveWest" title="Plan">
<container style="layout-data:bld(center)" id="plan">
<picture><_image>@{plan}</_image></picture>
</container>
<container style="layout-data:bld(south)">Some information</container>
</screen>
The first container (id = "plan") is supposed to fill the space, do I would like to know how to get the size of the container (id = "plan").
Thanks!