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 / Sprites and screen grabs

Author
Message
Hootster
6
Years of Service
User Offline
Joined: 30th Mar 2018
Location:
Posted: 30th Mar 2018 14:39
Is it possible in AppGameKit to position a sprite on a screen, and grab a portion of that screen along with the sprite , and save as a png?

Thanks
smallg
Valued Member
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location: steam
Posted: 30th Mar 2018 20:35
yes, look at GetImage() and SaveImage()
life's one big game
spec= 4ghz, 16gb ram, AMD R9 2700 gpu
Hootster
6
Years of Service
User Offline
Joined: 30th Mar 2018
Location:
Posted: 30th Mar 2018 22:27
Thanks.... That was what I was looking for.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 10th May 2018 22:25
Heres an example that updates a sprite image


there is also another way with rendering to an image (there may need to be render calls etc added)

The first method is a great method for most uses but when a full screen sized rendering is required the second method might be better.
Also the first method you have to redraw everything before the grab, the second method you render it to your image on screen a liitle
trickier to use but it may be what you want to do, there is some good examples in the help files
fubar

Login to post a reply

Server time is: 2024-04-18 18:35:55
Your offset time is: 2024-04-18 18:35:55