Re: Auto Resize Applications in J2ME ? hi there,
there is a class provided in motorola sdk com.motorola.extensions.ScalableJPGImage
in which you can scale jpg images to fit correctly in you application needs..
not only for jpg images but for png too...
ScalableJPGImage sImage = ScalableJPGImage.createImage(
"/test.jpg", 10, 10);
where test.jpg is the image in resource folder..
in this example i have set the image size 10 for width and height respectively
it can modified to screen size using GETheight() and getwidth() property
__________________
cheers
Aman
|