as3filters is a library with a variety of filters for image processing. The library works upon a BitmapData, creating a displacement map that will distort that given bitmap. It’s possible to specify a region in the source bitmap to limit the area where the library will act.

After the displacement map is calculated by the library, the developer can apply it to any bitmap. The resulting image will be bitmap distorted by the lib’s displacement map. Some of the available filters are bulge, twirl, squeeze, pinch, photicTunnel, fisheye and strech.

Sample

var bmd:BitmapData = new BitmapData(width, height, true);
var region:Rectangle = new Rectangle(30, 30, 90, 90)
var twirlFilter:DisplacementMapFilter = Filter.twirlFilter(bmd, region);
bmd.draw(video); // video is a bitmap from the camera
bmd.applyFilter(bmd, bmd.rect, new Point(0, 0), twirlFilter);

Via: FlashDaily.net

Misc . URL.