public virtual void load(AsURLRequest request, AsLoaderContext context)
        {
            mRequest = request;
            String url = request.getUrl();

            if (url.StartsWith("http"))
            {
                throw new NotImplementedException("Http loading not implemented");
            }

            BcTexture2D image = BcResFactory.GetInstance().LoadImage(url);

            AsDebug.assert(image != null, url);

            AsBitmapData bitmapData = new AsBitmapData(image);

            mContent = new AsBitmap(bitmapData);

            Debug.WriteLine("Image loaded: " + url);
            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
 public AsBitmapData(BcTexture2D texture)
 {
     mTexture = texture;
     init(texture.Width, texture.Height, true, 0xffffffff);
 }
 public static void DrawImage(BcTexture2D tex, float x, float y)
 {
     GetSpriteBatch(BatchMode.Sprite).Draw(tex.Texture, new Vector2(x, y), drawColor);
 }