ColorMatrixFilter (flash.filters.ColorMatrixFilter)

Object
  |
  +-flash.filters.BitmapFilter
    |
    +-flash.filters.ColorMatrixFilter

public class ColorMatrixFilter
extends BitmapFilter

The ColorMatrixFilter class lets you apply a 4 x 5 matrix transformation on the RGBA color and alpha values of every pixel on the input image to produce a result with a new set of RGBA color and alpha values. It allows saturation changes, hue rotation, luminance to alpha and various other effects. You can apply this filter to bitmaps and MovieClip instances.

The use of filters depends on the object to which you apply the filter:

  • To apply filters to movie clips at runtime, use the filters property. Setting the filters property of an object does not modify the object and ...

Get ActionScript 2.0 Language Reference for Macromedia® Flash® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.