hide side navigation
    5 most recent
    Web Services
    Library's
    Component's
    Applications
    Articles
  Flash button as Flex icon  Flex form by email  Hello Remoting with AS3  AS3 Saving data from Flash  AS3 Loading data into Flash  Fire Effect  Contact form  Dragable buttons  Hello World with openamf  Loading helper classes  Upload with Flash 8  Transitions effects  Snapshot with Flash 8  Hello World Remoting AS2  Flash AS2 Remoting Connector  Saving data from Flash  Loading data into Flash  FlashCom & Remoting login  Cell Renderer API  Editing a table using remoting components  Flash MX2004 web service classes  Browsing a catalog  amfphp Documentation  Hello World Remoting  Online Store with AMFPHP  Flash clients for Web Services  Web Service Walk Though with NuSoap  Popup windows in flash with javascript  Installing Apache/PHP  MoreOver News Feeds  Load Edit Save Text Files via CGI  Save Movie Clip Postion via PHP and MySQL
 Read Full Documentation >>

Image filter and jpg output in Flash 8

By: Jorge Solis

Goals

One of the more impressive features about the new Flash 8 is the ability to manipulate Bitmap data. With the new BitmapData class you can manipulate images pixel by pixel, copy from one bitmap object to another and set color at pixel level. Also you can apply filters to images runtime, and the graphic render performance is much better thanks to the cache feature that converts vectors to bitmaps.

One of my first thoughts was about capturing images and pass it to create JPG files on the server. Many people did ask about this, but this was only possible with vector image. Now passing the RGB values for each pixel allows to reconstruct on server side. Anyway, is a huge packet of data, and for sure some data serialization is needed for large images. Also the server have a hard work to rebuild this. Anyway, is a good experiment and possible, so take as a first approach.

On the other side, I play around three of available filter classes, capturing images from the video and showing filtered. Capturing is not only possible with video, but also with any MovieClip in your movie.

Before starting, download the example file >>

Requirements

- Macromedia Flash 8

- A webserver that supports PHP (4.2+) for the output to JPG feature

Note: the video is the one used for all Macromedia examples around FLV files, available at http://www.helpexamples.com/flash/video/water.flv

Here is our working movie. The JPG output is disabled because the server overheading, but you can download the example and test in your own server (remember, use PHP 4.2+ since it needs the GD library)

Continue Reading >>