How to create a "score" image to share on social media?

Hello all,

At the end of game level I would like to offer the player to share their score to social media. I read on the forum that I can use the native.showPopup() with the “social media” plugin to post an image to social medias.

My question is, how do I create that image? I know that I can take a snapshot of the screen and save that to a file, but the score image I display on the screen doesn’t have the app name in it. 

I would like to create a special image just for social media sharing which has my app’s logo and name on it along with the score.

Do I have to show that and then capture it or is there a way to do it in memory?

Thanks.

You can create the image including text, take the snapshot and then immediately delete it again. The user won’t see it but it will be in the snapshot.

Thanks @Nick. I’ll give it a try.

You can create the image including text, take the snapshot and then immediately delete it again. The user won’t see it but it will be in the snapshot.

Thanks @Nick. I’ll give it a try.