Previous: 4.51.2.1.9. init() To the Table of Contents Next: 4.51.2.1.11. loadFromOffset()
4.51.2.1.9. init() Table of Contents 4.51.2.1.11. loadFromOffset()

- 4.51.2.1.10. -
Table of Contents
4. Standard Units
4.51. ObjGfx40 - ObjectGraphics 4.0 Unit
4.51.2. ObjGfx40 Unit Object Types
4.51.2.1. ogBlit object
4.51.2.1.10. loadFromFile()


4.51.2.1.10. loadFromFile()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Loads a blit from an open file.

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

Loads a blit 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 blits from a file stream.

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

Restrictions:

File must be open and positioned to a valid blit.

Return value:

TRUE if successful, FALSE if failure.

See also:







Previous: 4.51.2.1.9. init() To the Table of Contents Next: 4.51.2.1.11. loadFromOffset()
4.51.2.1.9. init() Table of Contents 4.51.2.1.11. loadFromOffset()

- 4.51.2.1.10. -