2014-09-23 40 views
0

我試圖加載從我有在andengine

位圖對象TextureRegion加載從文件我用圖像從位圖對象加載TextureRegion:

sprite_texture = (TextureRegion) BitmapTextureAtlasTextureRegionFactory.createFromAsset(Constants.LevelAtlas,Constants.context, "sprite.png", x, y); 

但現在我想從URL加載圖像。我打開了URL並創建了一個Bitmap對象,我想知道如何使用Bitmap對象創建一個Sprite紋理。

任何幫助非常感謝!

回答