AMOSi:Frame Length

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Tutorial:Tutorials/Iff_Animation.AMOS

Calculates the amount of memory which will be needed to hold the selected frames of an IFF animation file.

size=Frame Length(file)
  • file is the channel number of an IFF file which you've previously opened with the OPEN IN command.

size=Frame Length(file,n)<br />

  • n specifies the number of frames which should be taken into consideration. If it's omitted, AMOS will only check out the first frame in the animation. And if the number's too large, AMOS will return the memory required for all the frames in the current file.