Loading images into arrays

BlitzMax Forums/BlitzMax Beginners Area/Loading images into arrays

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

What im trying to do is load an animated image (Animimage) into an array segment, using the following code:
strict

graphics 640,480,16

IncBin "Data\Apple.PNG"

Global Array[10]

Array[0] = LoadAnimImage( "incbin::Data\Apple.PNG", 32, 32, 0, 7 )

DrawImage Array[0], rnd( 640 ), rnd( 480 ), 0
flip
Repeat;until keydown(KEY_ESCAPE)=1
end


The thing is at the Drawimage it keeps chucking up a error something about Null images and when I look the image isnt loaded into the array. Can images only be loaded into variables now or is there something im not doing right?