[Previous] [Contents] [Index] [Next]

PgDrawPhImagemx()

Draw an image that's contained in a PhImage_t structure

Synopsis:

int PgDrawPhImagemx( PhPoint_t const *pos, 
                     PhImage_t const *image, 
                     int flags );

Description:

This function draws the provided image at position pos. The image parameter must be a pointer to a PhImage_t structure that defines the image to be rendered. If the image has a transparency mask, it's used.

The currently defined valid bits for the flags parameter are:

Pg_GHOST or Pt_GHOST
Render the image using the ghost bitmap as a transparency mask.

Returns:

0
Success.
-1
The draw buffer couldn't be resized enough to fit a single scan line of the image (insufficient memory).

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApGetImageRes(), PhImage_t, PhMakeGhostBitmap(), PhMakeTransBitmap(), PhReleaseImage(), PxLoadImage()


[Previous] [Contents] [Index] [Next]