11.3. MobileArtBlog – Image-Composition Tool
The image-composition tool described in this section allows the user to compose and draw images, as seen in Figure 11.6. With the camera and navigation keys, a photo can be placed multiple times on the canvas and its size can be changed. Alternatively the photo can leave color traces by moving it on the canvas using the navigation keys. At any time during the composition process, a new photo can be taken. The composed image is stored in the gallery of the phone and is also uploaded to the Internet by pressing only one button. The application was created by one of the authors for his MobileArtBlog concept. He uses it during his travels when he is stimulated by things he sees and experiences in different cities, places and situations, trying to capture the moment and turn it into a memorable 'art piece' (mobile art). Once the image is composed, it is posted directly over the mobile data network to his MobileArtBlog website with metadata such as the name of the place and its GPS coordinates. The GPS data are read by way of Bluetooth from an external GPS device. A large collection of created images can be seen a t www.mobileartblog.org with their originating positions on a Google map view.
Figure 11-6. A collage of MobileArtBlog images
Let's look at the code to see how the application works. We list the mobile-client code, as well as the ...
Get Mobile Python: Rapid Prototyping of Applications on the Mobile Platform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.