home *** CD-ROM | disk | FTP | other *** search
- class sandy.util.BitmapUtil
- {
- function BitmapUtil()
- {
- }
- static function movieToBitmap(mc, pTransparent, pColor)
- {
- var _loc3_ = undefined;
- pTransparent = pTransparent != undefined ? pTransparent : true;
- if(pTransparent == true && pColor == undefined)
- {
- pColor = 16711884;
- }
- if(pColor)
- {
- _loc3_ = new flash.display.BitmapData(mc._width,mc._height,pTransparent,pColor);
- }
- else
- {
- _loc3_ = new flash.display.BitmapData(mc._width,mc._height,pTransparent);
- }
- _loc3_.draw(mc);
- return _loc3_;
- }
- static function getScaledBitmap(b, scalex, scaley)
- {
- scaley = undefined != scaley ? scaley : scalex;
- var _loc2_ = new flash.display.BitmapData(scalex * b.width,scaley * b.height);
- _loc2_.draw(b,new flash.geom.Matrix(scalex,0,scaley,0));
- return _loc2_;
- }
- }
-