Difference between revisions of "AMOSi:Frame Length"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
(code now in codeblocks)
 
Line 3: Line 3:
  
 
Calculates the amount of memory which will be needed to hold the selected frames of an IFF animation file.
 
Calculates the amount of memory which will be needed to hold the selected frames of an IFF animation file.
 +
<code><pre>
 +
size=Frame Length(file)
 +
</pre></code>
  
 
+
* file is the channel number of an IFF file which you've previously opened with the OPEN IN command.
size=Frame Length(file)<br />
 
 
 
 
 
file is the channel number of an IFF file which you've previously opened with the OPEN IN command.
 
  
  
 +
<code><pre>
 
size=Frame Length(file,n)<br />
 
size=Frame Length(file,n)<br />
 +
</pre></code>
  
  
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.
+
* 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.

Latest revision as of 00:31, 3 February 2008

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.