# Could you explain draw() while using clipRect?

**URL:** <https://forum.kirupa.com/t/could-you-explain-draw-while-using-cliprect/311250>\
**Category:** flash\
**Created:** [July 1, 2010, 8:03am UTC](https://forum.kirupa.com/t/could-you-explain-draw-while-using-cliprect/311250 "2010-07-01T08:03:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrjellybeans](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@jrjellybeans](https://forum.kirupa.com/u/jrjellybeans)\
**Post date:** [July 1, 2010, 8:03am UTC](https://forum.kirupa.com/t/could-you-explain-draw-while-using-cliprect/311250/1 "2010-07-01T08:03:53Z")

</div>

Hey guys,

I’ve tried working this problem out several times, but I’ve never been able to get it to work.

What I want to do is draw a PART of a bitmapdata onto another bitmapdata while using transparency effects.

My code looks something like this:

```auto

bmdScreen.draw(bmdSource,new Matrix(1,0,0,1,this.x,this.y),new ColorTransform(1,1,1,.5,1,1,1,.5),null,new Rectangle(1,1,32,32));

```

The problem SEEMS lies in the new Rectangle. Whenever I try using it, nothing gets drawn onto bmdScreen.

So, what’s the deal? How would I draw a 32X32 rectangle of bmdSource while using the draw method? Is this even possible?

(By the way, the only way I found a workaround to this is to create a separate bmdSource that is the rectangle itself. It’s kind of a clunky system and it’d be nice to do away with it.)
