Previous: 4.51.2.3.2. done() To the Table of Contents Next: 4.51.2.3.4. getHeight()
4.51.2.3.2. done() Table of Contents 4.51.2.3.4. getHeight()

- 4.51.2.3.3. -
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.3. get()


4.51.2.3.3. get()

Targets: MS-DOS, Win32 console


ObjGfx40 Unit

Copies a region of an ogSurface into a sprite.

Declaration:
  procedure get(var srcObject:ogSurface; x1, y1, x2, y2:int32); virtual;
Remarks:

Retrieves a rectangular region out of an ogSurface and copies it to the sprite. This method will allocate space in the sprite to hold the region. If the sprite already has image data, the old data will be discarded and the new data will overwrite it.

When calling get() on an 8BPP ogSurface, the palette of the surface is copied along with the image data.

See also:







Previous: 4.51.2.3.2. done() To the Table of Contents Next: 4.51.2.3.4. getHeight()
4.51.2.3.2. done() Table of Contents 4.51.2.3.4. getHeight()

- 4.51.2.3.3. -