 package org.shypl.common.util {
 	import flash.display.Bitmap;
 	import flash.display.BitmapData;
+	import flash.display.BitmapDataChannel;
 	import flash.display.DisplayObject;
 	import flash.display.IBitmapDrawable;
 	import flash.display.PixelSnapping;

	import flash.geom.Rectangle;

	public final class BitmapUtils {

		public static function getRectangle(source:BitmapData, rect:Rectangle):BitmapData {
			var copy:BitmapData = new BitmapData(rect.width, rect.height);
			copy.copyPixels(source, rect, StaticPoint0.INSTANCE);
			return copy;
		}

		public static function createBitmap(image:BitmapData, smoothing:Boolean = true, pixelSnapping:String = PixelSnapping.AUTO, x:Number = 0, y:Number = 0,
			scale:Number = 1


			return new Rectangle(l, t, r - l, b - t);
		}
	}
}
