Skip to main content
Participant
February 5, 2010
Question

Merging blended layers (pixel bender blends)

  • February 5, 2010
  • 2 replies
  • 569 views

I've been building a ton of blend modes in pixel bender for a graphics library. To use them within flash, I can use the DisplayObject.blendShader and the result is displayed to the screen.

This is all great, but it doesnt let me use the result as a single bitmap that can be processed further. I know its possible to draw a bitmapdata on top of another and apply a blend mode using BitmapData.draw(), but it only supports strings that represent the native blend modes.

How would I go about merging two bitmapDatas using pixel bender shaders blends?

Thanks!,

Julien Iafrancesco

This topic has been closed for replies.

2 replies

Participant
February 15, 2011

Ran into the same issue. Any thoughts out there?

Participant
November 19, 2010

Hello. I have the same problem. I need to use BitmapData.draw() with BlendMode.SHADER. But it doesn't work. While I use two sprites with blendShader = myShader it's ok. But with BitmapData.draw() it's not work.

How I could do this?

Thanks.