in the function call pass the colour pixel id....and get it in the function defenition]
or pass the hexadecimal value of the color
I'm sorry, aaravind, I don't understand what you're saying. In what function call to I pass the color pixel ID? What color pixel ID? Where do I find the callColor function?
You need to convert the image to BitmapData as below.
var bitmapData:BitmapData = picture.bitmapData;
bitmapData.colorTransform(picture.getBounds, colorTransform); ..
I admit I know very little about the colorTransform call, so correct me if I'm wrong. I thought that call worked on all pixels in the image. I just want to alter pixels of a certain color and change them to another color. If colorTransform can do this, can you give me some direction or point me to some documentation that explains how to do this? Thanks again for the help!
Here is your answer:
If this post answers your question or helps, please mark it as such.