0 Replies Latest reply on Oct 20, 2008 12:25 PM by bogdanda

    need help with colorTransform

      I want to load a black and white transparent png and after that using color transform to change the black shapes in any color I desire. The png, generated in photoshop has transparent pixels, and black pixels with alpha up to 100%.

      The coding was successful and the program works with some "bugs". When I change the color (using colorTransform), the 100% alpha pixels modify correctly. But the other black pixels do not. For example, if I change my shapes from black to green (0,255,0) and I set green background I see some grayish spots (where the pixels with alpha below 100% are).

      Does anyone now how can I correct this problem ? Or at list why I have this problem ?

      Below is the code I use for color transformation on a BitmapData object filled with my png.