Book Image

Delphi Cookbook

By : Daniele Teti
Book Image

Delphi Cookbook

By: Daniele Teti

Overview of this book

Table of Contents (14 chapters)
Delphi Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Taking a photo, applying effects, and sharing it


This recipe will introduce the mobile development world using a simple app that shows how to take a photo directly from the camera or from the photo library, apply some effects to it, and then share it using one of the installed apps on the device.

Getting ready

This recipe makes an extensive use of Delphi actions. Actions are an implementation of the GoF Command design pattern and are an important tool for the Delphi developer since the initial versions of Delphi. You can use them as much as you can. In the mobile era, actions are even more important and useful. Indeed, actions can be used to execute common tasks such as taking a photo from camera, getting a photo from the library, or sharing some content with the other apps. Here's how our app will look:

The Photo with Effects app with buttons on the top; three out of four buttons are bound to standard actions

How to do it...

Now we are about to create our first FireMonkey mobile app. Let's start...