Introduction
Almost any control or element in Titanium can have an animation or transform applied to it. This allows you to really enhance your applications by adding a level of interactivity and bling that your apps would otherwise perhaps not have.
In this chapter, we will create a small application that allows the user to choose a funny face image, which we are going to position over the top of a photograph of ourselves. We'll use transitions and animations in order to display the funny face pictures and to also allow the user to adjust the size of their photograph and its position so that it fits neatly within the funny face cut-out section.
Finally, we'll combine both our photograph and the funny face into one complete image using the Window's toImage()
method, letting the user e-mail the resulting image to their friends!
The complete source code for this entire chapter can be found in the Chapter 7/FunnyFaces
folder.