LoadAnimImage

BlitzMax Forums/BlitzMax Programming/LoadAnimImage

Hi all,

I am trying to load this image: using:
local fntImage:TImage;
fntImage = LoadAnimImage ("digits.png",26,32,0,12,FILTEREDIMAGE);

While Not KeyDown(key_escape)
	Cls
		drawimage fntImage (fntImage,10,10);
	Flip
Wend


But this gives error saying i am trying to access a null object, however if i use:

fntImage = LoadImage ("digits.png");


it works fine, is there any particular reason this may occur?