Bitmap and BitmapData

is it possible to change a color range to another color using ActionScript 3.0 Bitmap and BitmapData classes? like image below

thank you very much