ToolTipsFactory |
This function returns the total file-size of all FrameImages of the Animation.
[Visual Basic] Public Function TotalImageFileSize() As Long
[C#] public long TotalImageFileSize();
Parameters
none
Return value
The total file-size (in bytes) of all FrameImages as a Long value.
Description
This function determines the total size of the resulting files, if all frame-images would be saved to file.
'Create a new Animation...
Dim myAnimation As Animation
'...and load an existing ToolTipsFactory Animation from file.
myAnimation.Load("C:\Movies\Holidays2002.afx")
'Loop through all Frames and write their ImageFileSize to
'the debug-window....
Dim Length As Integer = myAnimation.Frames.Count
Dim frame Dim AnimationFrame
For Each frame In myAnimation.Frames
Debug.WriteLine("File-size: " & frame.GetImageFileSize())
Next frame'Finally, show the size of all frames together...
Debug.WriteLine("Total file-size: " & myAnimation.TotalImageFileSize())
...