How do you put Image on the Screen?

Just starting out? Need help? Post your questions and find answers here.
AF2013
Posts: 1
Joined: Wed Mar 26, 2014 9:27 pm

How do you put Image on the Screen?

Post by AF2013 »

Hello Everyone

I just bought purebasic and got SpiderBasic demo

I have try out to put image on the screen but it doesnt show it up :(

Code: Select all

#ScreenWidth = 1024
#ScreenHeight = 768

OpenScreen(#ScreenWidth, #ScreenHeight, 32, "Putting Sprites on screen")

LoadSprite(1, "HOTTIE.png")

DisplaySprite(1,10,10)

FlipBuffers()
Am I missing somethings?
User avatar
Paul
Posts: 195
Joined: Wed Feb 26, 2014 6:46 pm
Location: Canada
Contact:

Re: How do you put Image on the Screen?

Post by Paul »

Look in the SpiderBasic Examples folder.
Code must be structured differently than what you may be use to in PureBasic.
netmaestro
Posts: 7
Joined: Tue Feb 25, 2014 10:31 am

Re: How do you put Image on the Screen?

Post by netmaestro »

I don't see a UsePNGImageDecoder() in there...
Post Reply