Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
Talk:Explode effect for Java ME Images
This article provides a code example for a nice “exploding image” effect in Java ME. The code example demonstrates how to create an animation which makes it appear as if an image is exploding, with the image splitting into pieces, which are shown to be “blown” outward from the image center. The effect makes use of the translate and setClip methods of the Graphics class to split images up into pieces and move these to create the desired effect.
While the code example probably doesn’t have very many potential use cases, it does nevertheless serve to show how to create impressive graphical effects using the low-level drawing operations provided by the Graphics object used by low-level drawing classes such as the Canvas. Using similar techniques, programmers can create all manner of interesting graphical effects for use in games or simply for creating impressive screen transitions.
The code example is nicely commented and clearly laid out, making it easy to understand and follow.