×
Namespaces

Variants
Actions

Talk:Adding a sliding effect to Images in Java ME

From Nokia Developer Wiki
Jump to: navigation, search
{{{width}}}
26 Sep
2009
Article Review by Larry101 (20090926)

This article demonstrates a nice animated effect for transitioning between images in Java ME. It shows how an image can be split into slices, which are then shown to “slide” on or off the screen. The code example is well commented and easy to follow because of the use of meaningful property and method names. Various parameters are also provided which are customizable, such as the number of slices an image is split into, the direction the sliding takes place, and whether the image slides in or out.

While the technique demonstrated probably only has limited application, it shows the kind of professional looking image effects that can be created in Java ME with a little effort. Using similar techniques which make use of the setClip and translate methods of the Graphics class, many interesting and professional transition effects can be created.