package classes.matuto.utils.display
{	
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	
	public class Texturize 
	{
		
		public static function resize(classe:Class,alvo:Sprite, w:Number, h:Number):void
		{
			
			alvo.graphics.clear();
			var textura:BitmapData = new classe(0, 0);
			alvo.graphics.beginBitmapFill(textura);
			alvo.graphics.drawRect(0, 0, w, h);
			alvo.graphics.endFill();
			
		}
		
	}
	
}