# Blending the brightness of two bitmapdatas

**URL:** https://forum.kirupa.com/t/blending-the-brightness-of-two-bitmapdatas/290898
**Category:** flash
**Created:** [June 22, 2009, 2:01am UTC](https://forum.kirupa.com/t/blending-the-brightness-of-two-bitmapdatas/290898 "2009-06-22T02:01:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![TedMilk](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@TedMilk](https://forum.kirupa.com/u/TedMilk)
#### Post date: [June 22, 2009, 2:01am UTC](https://forum.kirupa.com/t/blending-the-brightness-of-two-bitmapdatas/290898/1 "2009-06-22T02:01:10Z")

</div>

I really need to know, specifically, how to overlay one bitmapdata onto another, using the hue and saturation of the top bitmapdata, and blending the brightness of the two layers. ColorMatrix gets me close but can only affect one bitmapdata, not blend between two. Also, the overlay effects do not allow me to blend in this very specific way.

PLEASE HELP!
