my solution should work [see previous post]! have you tried it? or am i
wrong?
Brian Williams wrote:
I may be wrong, but I don't think you can do it just with a color matrix,
but you could try drawing the solid color you want to tint with, and use
the
greyscale image with the hardlight blendmode on top. I think that should
give you the desired effect.
check out http://www.simpelfilter.de/en/grundlagen/mixmods.html or google
for hardlight blendmode.
--Brian
On 5/10/07, Mike Mountain <[EMAIL PROTECTED]> wrote:
not sure I made myself clear - given a desaturated greyscale image I need
to
be able to tint it to an RGB value - so black stays black, white stays
white
and rgb=128,128,228 (50% grey) is the actual colour - with all the shade
in
between. I need to be able to do this by using code like this:
[as3]
trace("composite startTime:"+getTimer());
// tint
var matrix:Array = new Array();
matrix = matrix.concat([r1, r2, r3, r4, r5]);
matrix = matrix.concat([g1, g2, g3, g4, g5]);
matrix = matrix.concat([b1, b2, b3, b4, b5]);
matrix = matrix.concat([a1, a2,a3, a4, a5]);
var tintFilter = new ColorMatrixFilter(matrix);
[/as3]
so how do I work out the r's g's and b's in the matrix?
Cheers
Mike
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com