actionscript 3 - Flash: combine two BitmapData objects via max( channel ) -


There are two bitmap data objects with my alpha channel. I use the maximum for each channel, using alpha (channel_image_one, channel_image_two) I want to add them to singles. Is there an easy way to get this result?

I do not think the direct betamapadata method is to combine the alpha channel in such a way that with the help of RGB draw () Is implementing a mixing mode, but I do not think if you need a link maximum per channel).

In addition to this, you can make a shader thanks to this task, it is the perfect tool for such manipulations.

Slowly but fast setup in the display If you were not used for PB then you can read / compare the pixels once again with bitmap data .getPixel32 () / setPixel32 (). If you go for this, think about using bitmap data () / unlock () to boost performance.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -