Cant get images!
BlitzPlus Forums/BlitzPlus Beginners Area/Cant get images!
| ||
| 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? |
| ||
| Check if the "grass1.bmp" file is in the same folder as your source code. |
| ||
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
|
| ||
| Image not found... Could not load... Don't send... :P As i would have guessed, by the source |
| ||
| Hi, Do you need a space after the DrawImage (picture,0,0,0) It is a .bmp? |