Hello,
I am new to BlitzMax and I'm having a hard time getting the simplest program to run. Can one shed any light on why this code fails?
{code}
CreateGraphics (1024,768,16,60,0)
imagen = LoadImage("image1.jpg",0)
DrawImage imagen,0,0,0
Flip
WaitKey
{/code}
I keep getting a "call of null object method or property" (or something like that ) error. My guess is that the image is for some reason not loading. But the documentation does not specify which formats are supported. When I use Print on the "imagen" object, I get a 1, so I guess that the object is not really null. Also, the WaitKey command keeps on waiting even after I press a key. Why is this?
I am new to BlitzMax and I'm having a hard time getting the simplest program to run. Can one shed any light on why this code fails?
{code}
CreateGraphics (1024,768,16,60,0)
imagen = LoadImage("image1.jpg",0)
DrawImage imagen,0,0,0
Flip
WaitKey
{/code}
I keep getting a "call of null object method or property" (or something like that ) error. My guess is that the image is for some reason not loading. But the documentation does not specify which formats are supported. When I use Print on the "imagen" object, I get a 1, so I guess that the object is not really null. Also, the WaitKey command keeps on waiting even after I press a key. Why is this?