# BitmapData's threshold like function

**URL:** <https://forum.kirupa.com/t/bitmapdatas-threshold-like-function/260726>\
**Category:** flash\
**Created:** [May 19, 2008, 11:21am UTC](https://forum.kirupa.com/t/bitmapdatas-threshold-like-function/260726 "2008-05-19T11:21:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![titus1](https://avatars.discourse-cdn.com/v4/letter/t/87869e/32.png) [@titus1](https://forum.kirupa.com/u/titus1)\
**Post date:** [May 19, 2008, 11:21am UTC](https://forum.kirupa.com/t/bitmapdatas-threshold-like-function/260726/1 "2008-05-19T11:21:54Z")

</div>

hello,  
i want to load 2 swf files, one with images(as background) and one with text(over the prev)  
now i want from the text one to show only text, not it’s background too, so i am using

```auto
img2.threshold(img1, img1.rectangle, img1.rectangle.topLeft, ">=", 0x00FFFFFF, 0x00000000, 0x00FFFFFF,true)

```

where img1 is

```auto
igm1.draw(text_mc)

```

this wipes all the white pixels from the image(white is the background of the text swf) and displays exactly as i want.

but there is a problem, the text mc is no longer vector but bitmap so it looses quality at zoom.

my question is: can i apply something like this to a movieclip? and if yes how.

thanks.
