 import flash.display.BitmapData;
 import flash.display.Shader;
 import flash.filters.ShaderFilter;
+import flash.geom.Point;
+import flash.geom.Rectangle;
 import flash.utils.ByteArray;
 
 import mx.core.IUIComponent;

            shader = new Shader(shaderByteCode);
            if (shader.data)
            {
                shader.data.from.input = bitmapFrom;
                shader.data.to.input = bitmapTo;
                

                
                // auto-set width/height if exposed in shader
                if ("width" in shader.data)
                    shader.data.width.value = [Math.max(bitmapFrom.width, bitmapTo.width)];
                if ("height" in shader.data)
                    shader.data.height.value = [Math.max(bitmapFrom.height,bitmapTo.height)];
                if (shaderProperties)
                {
                    for (var prop:String in shaderProperties)
