Once we load a visual object into our application, as this is all Flash-based, we can do all sorts of robust visual manipulation. In this example, we will load a preselected photograph from the local file system, and then apply a variety of Pixel Bender Shaders to it, drastically changing its appearance.
This recipe makes use of Pixel Bender Shaders. You can download .pbj
files from the Adobe Exchange or create your own.
If you decide to write your own Pixel Bender kernels, you can download the Pixel Bender Toolkit for free from http://www.adobe.com/devnet/pixelbender.html and use it to compile all sorts of shaders for use in Flash and AIR projects.
The toolkit allows you to write kernels using the Pixel Bender kernel language (formerly known as Hydra) and provides mechanisms for image preview and separate property manipulation that can be exposed to ActionScript.
For a good resource on writing Pixel Bender Shaders, check out...