Cant get images!

BlitzPlus Forums/BlitzPlus Beginners Area/Cant get images!

Shadows(Posted 2012) [#1]
i have tried so much and looked up a ton of videos and non have helped my code is
Graphics 640,480,0,2
SetBuffer BackBuffer()

picture = LoadImage("grass1.bmp")

While Not KeyHit(1)
Cls
DrawImage(picture,0,0)
Flip
Wend

End

And the file is inside the blitzplus folder when ever i try to pull it up i get "Invalid Image Handle" Anyone help?


Matty(Posted 2012) [#2]
Check if the "grass1.bmp" file is in the same folder as your source code.


ozzi789(Posted 2012) [#3]
Please try this, and tell us what notifications you got :)
Graphics 640,480,0,2
SetBuffer BackBuffer()

picture = LoadImage("grass1.bmp")

If FileType("grass1.bmp")=0 Then Notify "Image not found!"

If picture = 0 Then Notify "Image could not be loaded! Check file integretiy and file extension"

While Not KeyHit(1)
Cls
DrawImage(picture,0,0)
Flip
Wend

End



Andres(Posted 2012) [#4]
Image not found...
Could not load...
Don't send...

:P As i would have guessed, by the source


gerald(Posted 2012) [#5]
Hi,

Do you need a space after the DrawImage (picture,0,0,0)

It is a .bmp?