Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PhMakeGhostBitmap()

Create a ghost bitmap for an image

Synopsis:

int PhMakeGhostBitmap( PhImage_t *image );

Library:

ph

Description:

This function takes a PhImage_t pointer and creates a ghost bitmap for the image. The ghost bitmap is stored in the image's data structure.

The image argument must point to a valid PhImage_t structure. It can point to a regular or transparent image.

The ghost image is used when either Pt_GHOST or Pg_GHOST is passed as a flag to PgDrawPhImage() or PgDrawPhImagemx().

Returns:

0
The image was successfully created.
-1
The image wasn't created. The image parameter may have been NULL, or the allocation of the bitmap may have failed.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgDrawPhImage*(), PgDrawPhImageRect*(), PgDrawRepPhImage*(), PhCreateImage(), PhImage_t

Images in the Raw Drawing and Animation chapter of the Photon Programmer's Guide