home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Esportes
/
CrossingCup.swf
/
scripts
/
__Packages
/
sandy
/
util
/
BitmapUtil.as
next >
Wrap
Text File
|
2007-12-11
|
930b
|
33 lines
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_;
}
}