DQBunpackSprite
FUNCTION

Prototype

DECLARE FUNCTION DQBunpackSprite (BYVAL PacketID, BYVAL SpriteSeg, BYVAL
                                  SpriteOff)

Parameters

PacketID - Packet ID number

SpriteSeg - Segment of QB array where to hold decoded sprite data

SpriteOff - Offset of QB array where to hold decoded sprite data

Returns

An INTEGER value holding the unpacking results: > 0 Operation successful > 1 Datafile not yet opened > 2 Unknown packet ID number > 3 Bad password or unknown data

Description

Acts like DQBunpackImage, but stores decoded image data into the specified QB array, ready to be used with DQBput or similar functions. Be sure you have an array big enough to contain the data, otherwise you may crash your system.

Notes:

This works on image packets; this means you can call DQBunpackImage as well as DQBunpackSprite on the same image packet.

Example

See DQBopenDataFile