--- In flexcoders@yahoogroups.com, "Nick Collins" <[EMAIL PROTECTED]> wrote: > > Is there a way to change your blendMode on a per-pixel basis. Essentially, I > want the blendMode layer to be applied as a Multiply blend mode if the > brightness value is greater than 20, and as a Screen blend mode if the > brightness value is less than 20. I need that to be evaluated on a per pixel > basis, however, as the movieClip under the blendMode layer will or could > consist of both light and dark colors. > > Anybody have any idea how I might accomplish this? >
The way I'd do it in Fireworks is to copy the image and mask out all the pixels in one with the brightness >20 and in the other with the brightness <=20. Then I'd apply the appropriate blend mode to each image. Since the pixels in each that got masked out would be transparent, when the two images are overlaid, you should get the desired effect. Not sure if you could duplicate this in Flex, but maybe hearing another perspective on the problem would help. HTH; Amy