public function createPreview(obj:*):BitmapData
{
var resultShirt:BitmapData = new BitmapData(obj.width, obj.height, false, 0xffffff);
var m:Matrix = new Matrix();
var s:Number = resultShirt.height / obj.width;
obj.mask = null;
m.translate(-obj.width / 2, -obj.height / 2);
m.translate(resultShirt.width / 2 , resultShirt.height / 2 );
resultShirt.draw(obj, m, null, null, null, false);
return resultShirt;
}
Export bitmap from MovieClip (DisplayObject)
Posted by TodayRatha
on
-
Category List
- Actionscript 3 (2)
- Digital Painting (1)
- Life style (1)
- Photoshop (1)
- Sencha Touch (1)