Previous: 4.51.2.3.13. saveToFile() To the Table of Contents Next: 4.51.2.4. ogSurface object
4.51.2.3.13. saveToFile() Table of Contents 4.51.2.4. ogSurface object

- 4.51.2.3.14. -
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.14. saveToOffset()


4.51.2.3.14. saveToOffset()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Saves a sprite to an offset in a file.

Declaration:
 function saveToOffset(const filename:string; offset:int32):boolean; virtual;
Remarks:

Saves a sprite to an offset in a file.

This method is useful for saving multiple sprites into a file.

If the offset is -1 and the file exists the sprite will be appended to the file.

Restrictions:

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

Return value:

TRUE if successful, FALSE if failure.

See also:







Previous: 4.51.2.3.13. saveToFile() To the Table of Contents Next: 4.51.2.4. ogSurface object
4.51.2.3.13. saveToFile() Table of Contents 4.51.2.4. ogSurface object

- 4.51.2.3.14. -