# Colorize MovieClip with bitmap

**URL:** <https://forum.kirupa.com/t/colorize-movieclip-with-bitmap/315817>\
**Category:** flash\
**Created:** [November 4, 2010, 11:06pm UTC](https://forum.kirupa.com/t/colorize-movieclip-with-bitmap/315817 "2010-11-04T23:06:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spectator](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@spectator](https://forum.kirupa.com/u/spectator)\
**Post date:** [November 4, 2010, 11:06pm UTC](https://forum.kirupa.com/t/colorize-movieclip-with-bitmap/315817/1 "2010-11-04T23:06:20Z")

</div>

Hello :). Which is the best way to colorize MovieClip using Bitmap?

```auto
var element:* = event.target;
    var myBitmapData:BitmapData = new BitmapData(100, 72);
    myBitmapData.draw(element)
    backGroundSprite.graphics.clear();
    backGroundSprite.graphics.beginBitmapFill(myBitmapData);
    backGroundSprite.graphics.drawRect(0, 0, bc.width, bc.height);
    backGroundSprite.graphics.endFill();

```

The event is MouseEvent. The target is MovieClip containing loaded image. Is this a good practice? I think that it is not, because it depends what kind of picture I load and sometimes the effect is not complete. Which is the best way to colorize image from bitmap pattern? Thank you in advance.
