Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] MEME generator

Author
Message
psychoanima
6
Years of Service
User Offline
Joined: 19th Jun 2018
Location:
Posted: 28th Jun 2018 20:48
Hi guys,

I am planning to make a meme generator. Most of the things and functions regarding AppGameKit I found already, but there are two main things that I am concern about and I can't find any info.


Meme generator will have an option to save/capture a screenshot of the final image and to share it on a user facebook wall.

1. Does AppGameKit have a snapshot/screen capture option (image not video)?

2. Is it possible to program AppGameKit to post a saved image on users facebook wall?

The author of this post has marked a post as an answer.

Go to answer

puzzler2018
User Banned
Posted: 28th Jun 2018 21:09
An excellent idea - but forgive me whats a MEME - sorry - im turning 43 but feels like 90
psychoanima
6
Years of Service
User Offline
Joined: 19th Jun 2018
Location:
Posted: 28th Jun 2018 21:32
Well, *cough* *cough*, MEME in Internet world is an image that has some catchphrase over it. It's mostly made for a humorous purpose.
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 28th Jun 2018 21:33
Quote: " 1. Does AppGameKit have a snapshot/screen capture option (image not video)?"


You can use PrintImage(imgId, 100) to save to the camera roll on Android and iOS. This is an undocumented feature and one that I have always wished would've been ported over to the actual SaveImage command as a parameter to allow us greater flexibility as far as image name, path etc. But for now that's all we have.

Quote: " 2. Is it possible to program AppGameKit to post a saved image on users facebook wall?"


There are these commands:

- FacebookPostOnMyWall ( szLink, szPicture, szName, szCaption, szDescription )
- FacebookPostOnFriendsWall ( szID, szLink, szPicture, szName, szCaption, szDescription )

You'll need to already have a Facebook app configured and approved on Facebook and properly authenticated and initialized through AGK. Facebook is a lot less efficient at approving apps these days in light of all their privacy violations and headlines this season.

Quote: "but forgive me whats a MEME "


The images you see with text over them. Like Bad Luck Bryan.
puzzler2018
User Banned
Posted: 28th Jun 2018 21:39
awesome
Bengismo
7
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 28th Jun 2018 21:45 Edited at: 28th Jun 2018 21:49
This post has been marked by the post author as the answer.
Just to add to the above

You can use GetImage() to capture your screen or a portion of it. That can be then saved as file with SaveImage()

You can then use the facebook functions above to post you image and text .......but also you should consider ShareImage()

ShareImage() or ShareImageAndtext()

To post to facebook you have to call the facebook setup commands and then login to the correct account in your code as said above. ShareImage allows the operating system to display potential applications to post your meme to, including facebook but also other apps (messages,whattsapp, twitter, photos...etc..) too so can be of more use - but its up to you what you prefer.
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 28th Jun 2018 21:52 Edited at: 28th Jun 2018 21:56
^ Definitely. I use share Intents exclusively in an app I'm currently working on since it really cuts out all the grunt work of setting up Facebook apps etc. especially when releasing on multiple platforms, and you don't have to worry about the SDK breaking while allowing the user to share on any supported platform. Really happy to have these features now.

Edit: One downside still is that AGK's "SaveImage" command uses the same thread as AppGameKit Core and can take quite a significant amount of time when saving out full images in this manner, which freezes the entire app. By contrast the PrintImage() command to save to the camera roll seems to use its own thread as handled by iOS (and presumably Android). So the PrintImage() command can save to the photo library almost instantly, but you may wait at least a number of seconds to save a full screen image using SaveImage(). I wrote to Paul about this at one point and he suggested he may be able to rework SaveImage to its own thread to avoid app lockup while it saves but I'm not sure when/if that will be considered.
psychoanima
6
Years of Service
User Offline
Joined: 19th Jun 2018
Location:
Posted: 28th Jun 2018 21:58
Thanks guys, I appreciate your help!

Login to post a reply

Server time is: 2024-11-23 17:39:21
Your offset time is: 2024-11-23 17:39:21