0

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.

Kitkat
  • 77
  • 16

3 Answers3

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

mina
  • 73
  • 6
Rama
  • 1,156
  • 1
  • 7
  • 13
0

First get the bitmap of that profile picture.Then convert that bitmap to .png format using this link.Then place that file name in Texture region.It will work

Community
  • 1
  • 1
Rama
  • 1,156
  • 1
  • 7
  • 13
0

check this for getting url for facebook picture

Community
  • 1
  • 1
Rama
  • 1,156
  • 1
  • 7
  • 13