Previous: 4.51.2.1.10. loadFromFile() To the Table of Contents Next: 4.51.2.1.12. put()
4.51.2.1.10. loadFromFile() Table of Contents 4.51.2.1.12. put()

- 4.51.2.1.11. -
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.11. loadFromOffset()


4.51.2.1.11. loadFromOffset()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Loads a blit from an offset.

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

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

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

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

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.1.10. loadFromFile() To the Table of Contents Next: 4.51.2.1.12. put()
4.51.2.1.10. loadFromFile() Table of Contents 4.51.2.1.12. put()

- 4.51.2.1.11. -