I think the question of resizing images is more a question of quality 
and speed. There is code for J2ME to resize images, just ask google :-). 
But the results will not be very nice, because, on many devices you have 
other screen-dimensiosn (240x240, 240x320 e.g.).

If you only target new devices, than this should not be a problem. Just 
include some more Graphics or build Midlets for specific devices.

Ashish Patil schrieb:
> Reply Embeded...
>
> On Jan 23, 2008 3:00 AM, Sergio Ordoño Marín <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
>
>     Hi everyone!
>
>     I got some questions related with the canvas class. I hope someone
>     can help.
>
>     I'm making an app for my sony ericsson so I'm using pictures of
>     128x160
>     pixels... but... I wonder if any function or procedure exist that
>     allows you
>     to resize images to fit the screen so that way I may be able to
>     use the app
>     in others cells with bigger or tinier screens resolutions.
>
> Well for MIDP 2.0/2.1 there is no scaling of images. (It may be coming 
> in MIDP 3.0). You can do it with some tricks in 3D, but still not many 
> hndsets will support 3D. Instead you can get better Image quality and 
> file size if you target individual canvas size.
>
>
>
>     More things... can you load animated gif file?. If so, how can you
>     make them
>     not cycle and show the animation only one time?.
>
> I have not tried animated gif. But what we use is image sequence. 
> Please check out Sprite class for more information.
>
>
>
>     last is a simple one... what happen if you put one imagen on top of
>     another... which one shows?, if the one on top is tinier than the
>     other, do
>     you see the big one behind it?
>
> Rendering is done in a way you call. So you draw a big image, it will 
> be shown. Then you draw another image, it will be drawn on top of 
> previous one. And yes, the parts of old image not blocked by new one 
> will still remain there.
>  
>
>     Is there some way of making some colors
>     transparent (I guess, maybe with png files)?.
>
> Yes, PNG supports transparency, as well as alpha channel. 8-bit PNG as 
> indexed colored with one of the color set as transparent. PNG 24 can 
> have an alpha chennel (semi-transparency) too.
>
> Thank you very much!
>
>
>
> ---
> Ashish Patil
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Eclipseme-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/eclipseme-users
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to