Re: [flexcoders] Grayscale Mask

2008-04-25 Thread gabriel montagné
On Thu, Apr 24, 2008 at 2:54 PM, Michael Wagner [EMAIL PROTECTED] wrote:
 I would like to make a mask / effect  in Flex
 to get from a.bmp using b.bmp as a mask to get c.bmp
 using bitmap operations probably.

If you really need to extract the shape from a bitmap, a quick way to
pull it off is to use an alpha blend mode.   You can even convert the
luminosity into opacity using a simple color matrix filter.

Here's a short example that might help you to do that if you really
want to go that way:
http://rojored.com/code/alpha-blend-mode/AlphaBlendMode.swf

Here's the code for it:
http://rojored.com/code/alpha-blend-mode/

Cheers,

-- 
gabriel montagné láscaris comneno
http://rojored.com
t/506.8392.2040


[flexcoders] Grayscale Mask

2008-04-24 Thread Michael Wagner
Hi:
I would like to make a mask / effect  in Flex
to get from a.bmp using b.bmp as a mask to get c.bmp
using bitmap operations probably.

Do you know how it can be done?

Thanks,
Michael.
attachment: a.bmpattachment: b.bmpattachment: c.bmp

Re: [flexcoders] Grayscale Mask

2008-04-24 Thread George
You need to use a transparent bitmap image as the mask (i.e. a 
transparent shape inside a SWF), both masker/maskee must be 'cached as 
bitmap'.

George

Michael Wagner wrote:

 Hi:

 I would like to make a mask / effect  in Flex
 to get from a.bmp using b.bmp as a mask to get c.bmp
 using bitmap operations probably.
  
 Do you know how it can be done?

 Thanks,
 Michael.