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.

This works OK...
Strict

Graphics 640,480,16

Incbin "max.PNG"

Global Array[10]
Local frame:Int
Array[0] = LoadAnimImage( "incbin::max.PNG", 32, 256, 0, 7 )
While Not KeyHit(key_escape)
    Cls
	DrawImage Array[0], 0,0, frame
	DrawText frame,0,300
	frame:+1
	If frame=7 frame=0
	Flip 
	FlushMem
wend
End