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 Studio Chat / [SOLVED] How to display an image?

Author
Message
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 2nd Jan 2022 10:18 Edited at: 2nd Jan 2022 10:51
I understand how to display a sprite on the screen and move it about etc . What I do not get is how to display an image on the screen . Any help would be good.
Here's a line of code that produces image 4 but how do I display this .
createimageFromPNGMemblock(4,21)

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

Go to answer

Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 2nd Jan 2022 13:34
This post has been marked by the post author as the answer.
You're opening line tells me that you already know the answer to this.



...



You create a sprite from the image
Pfaber1
6
Years of Service
User Offline
Joined: 7th Jan 2018
Location: England
Posted: 2nd Jan 2022 16:43
Thanks very much Ithat did the trick.

Login to post a reply

Server time is: 2024-04-25 09:04:37
Your offset time is: 2024-04-25 09:04:37