When I start game then log in to Facebook post about game after that my profile picture is set on corner of game play.I did search on it but found mostly in android application that show our profile picture. But I cannot find any way to convert image return from Facebook to texture region turns to sprite.
Asked
Active
Viewed 389 times
3 Answers
1
Another way you can do as follows:
File imageFile = new File(image);
IBitmapTextureAtlasSource fileTextureSource = FileBitmapTextureAtlasSource.create(imageFile);
ITextureRegion textureRegion = BitmapTextureAtlasTextureRegionFactory.createFromSource(mBitmapTextureAtlas, fileTextureSource, 0, 0);
TRY THIS
-
But i am confused about that which path i can use for File class. Because assets/gfx cant use. – Kiran ZabuzaLabs Jan 10 '14 at 12:58
-
You will get Url path of facebook profile picture.Place that one. – Rama Jan 10 '14 at 14:28