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:
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.)