Page 1 of 1

How do you put Image on the Screen?

Posted: Thu Mar 27, 2014 9:34 pm
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?

Re: How do you put Image on the Screen?

Posted: Fri Mar 28, 2014 4:58 pm
by Paul
Look in the SpiderBasic Examples folder.
Code must be structured differently than what you may be use to in PureBasic.

Re: How do you put Image on the Screen?

Posted: Sat Apr 26, 2014 8:03 pm
by netmaestro
I don't see a UsePNGImageDecoder() in there...