Skip navigation
GregConnTelevirtual
Currently Being Moderated

usinge a colour multiplier on images

Feb 24, 2009 8:41 AM

hi,

I have lots of images and i need to put a pinkish colour filter on them....The problem i'm having is i can put a layer of 50% alpha pink infront of the image but then it's much lighter than i want as it's half transparent. So I'd like to do a kind of photoshop multiplier effect where i merge the pink with the image. Is there a way to do this in as3?

I've seen merge, using bitmapData but i can't work out how to get it relate an loaded in image. Also i've seen the blendmode on movieclips but i can't seem to get anywhere with that.

Any ideas anyone?

Thanks in advance

Greg
 
Replies
  • Currently Being Moderated
    Feb 25, 2009 5:04 AM   in reply to GregConnTelevirtual
    Have you looked into using the ColorTransform class?

    var color:ColorTransform = new ColorTransform();
    color.redOffset = val;
    color.greenOffset = val;
    color.blueOffset = val;
    mc.transform.colorTransform = color;

    In this case, the same value (val) is being applied to each color channel, but you can use different values for each. "mc" is a movieclip
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points