Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function mcToBitmap5(displayObject:MovieClip,width:Number,height:Number):Bitmap
- {
- var bounds:Rectangle = new Rectangle( 9, 0, width, height);
- var bitmap:BitmapData = new BitmapData( int( bounds.width + 0.5 ), int( bounds.height + 0.5 ), false, 0 );
- bitmap.draw( displayObject, new Matrix(1, 0, 0, 1, -bounds.x, -bounds.y) );
- var b:Bitmap = new Bitmap();
- b.bitmapData = bitmap;
- return b;
- }
Add Comment
Please, Sign In to add comment