Previous: 4.51.2.3.8. load() To the Table of Contents Next: 4.51.2.3.10. loadFromOffset()
4.51.2.3.8. load() Table of Contents 4.51.2.3.10. loadFromOffset()

- 4.51.2.3.9. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.3. ogSprite object
4.51.2.3.9. loadFromFile()


4.51.2.3.9. loadFromFile()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Loads a sprite from an open file.

Declaration:
 function loadFromFile(var inFile:file):boolean;
Remarks:

Loads a sprite from an open file. The responsibility of opening the file, seeking to the proper location, and closing the file is up to the application designer.

This method is useful for loading one of multiple sprites from a file stream.

You can determine how big each sprite is by calling getSize()

Restrictions:

File must be open and positioned to a valid sprite.

Return value:

TRUE if successful, FALSE if failure.

See also:







Previous: 4.51.2.3.8. load() To the Table of Contents Next: 4.51.2.3.10. loadFromOffset()
4.51.2.3.8. load() Table of Contents 4.51.2.3.10. loadFromOffset()

- 4.51.2.3.9. -