Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

9. Drawing with Pixels > Bitmap Filters

Bitmap Filters

Filters have been a mainstay of graphics editing programs for years, adding special effects to images and illustrations with a minimum of effort. ActionScript has a number of filters for your number-crunching manipulation. Although there are no official classifications for filters, we’ve divided the filters we discuss into two sections: basic and advanced. Using Adobe Photoshop for comparison, basic filters are like Layer Styles—quick, easy-to-apply effects with limited functionality—and advanced filters are more robust and are more like the features found in Photoshop’s Filters menu.

Basic Filters

A good place to start when learning how to control filter effects with code is with a subset of filters found both in Flash Professional’s Properties panel and in their own ActionScript classes. These filters include DropShadow, Blur, Glow, Bevel, GradientGlow, and GradientBevel. This convenient overlap lets you play around with Flash Professional’s interface to see how various properties affect the appearance of the filter. You can then apply that understanding to your code settings later on. The advantages to using ActionScript over the Flash Professional interface include the ability to apply changes dynamically at runtime and reuse your code more easily.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint