Ho to colorize an image using actionscript

Hi all,
can anyone help me. actually i want to colorize an image’s background and foreground. how can i check image’s color pixel wise. help me…

Suraj