Currently browsing category

Techie talk

grayscale-example

Code Snippet: How to Grayscale an Image

The below actionscript snippet will transform an image to grayscale using the ColorMatrixFilter. package net.avdw.image { import flash.display.BitmapData; import flash.filters.ColorMatrixFilter; import flash.geom.Point; import flash.geom.Rectangle; /** * Makes a bitmap data object grayscale. * * @param destBitmapData The destination bitmap data object. * @param sourceBitmapData The source bitmap data where the …