Previous: 4.51.2.3.9. loadFromFile() To the Table of Contents Next: 4.51.2.3.11. put()
4.51.2.3.9. loadFromFile() Table of Contents 4.51.2.3.11. put()

- 4.51.2.3.10. -
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.10. loadFromOffset()


4.51.2.3.10. loadFromOffset()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Loads a sprite from an offset.

Declaration:
 function loadFromOffset(const filename:string; offset:uInt32):boolean;
Remarks:

Loads a sprite from an offset in a file into a sprite object.

This method is useful for loading one of multiple sprites which have been packed into a file.

Restrictions:

Can only seek into a file up to 4GB in size.

Return value:

TRUE if successful, FALSE if failure.

See also:







Previous: 4.51.2.3.9. loadFromFile() To the Table of Contents Next: 4.51.2.3.11. put()
4.51.2.3.9. loadFromFile() Table of Contents 4.51.2.3.11. put()

- 4.51.2.3.10. -