PWsprite: Drawing a sprite

Purpose

This isn't really a ProWesS keyword, but a PROforma one... It allows you to display a sprite within a Gstate. You should set the window within the Gstate to the size you want. The sprite will be made as big as possible within the current pagebox, so that it fills it as much as possible without being deformed (it will always keep the same aspect ratio).

Syntax

The syntax of this command is quite simple:

PWsprite Gstate,sprite

where sprite is the address of the sprite. Please note that this will only work if you have the sprite picture driver ("sprite_pfd") installed in PROforma. Gstate is a normal PROforma gstate.

The sprite is a normal Pointer Environment mode 4 sprite, which is preceded by a 60 byte header, the first bytes of which contain the name of the sprite, which must end with _sp4.


PROGS, Professional & Graphical Software
last edited 1996 Nov 14 (wl)