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

PhReleaseImage()

Release the allocated members of an image

Synopsis:

void PhReleaseImage( PhImage_t *image );

Description:

This function releases the allocated members of the PhImage_t pointed to by image, based on the value of image->flags. The valid flags are:

This function doesn't release the image structure itself.


Note: Widgets that use images call PhReleaseImage() automatically when the widget is destroyed or the image is changed. If you set Pt_FREE_MEMORY in the widget's Pt_ARG_FLAGS resource, the Ph_RELEASE_IMAGE_ALL flag is set before calling PhReleaseImage().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApGetImageRes(), PgDrawPhImagemx(), PhImage_t, PhMakeGhostBitmap(), PhMakeTransBitmap(), PmMemCreateMC(), PmMemFlush(), PxLoadImage()


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