Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ PhReleaseImage

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PhReleaseImage

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

PhReleaseImage()

Release the allocated members of an image

Synopsis:

void PhReleaseImage( PhImage_t *image );

Library:

ph

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:

  • Ph_RELEASE_IMAGE
  • Ph_RELEASE_PALETTE
  • Ph_RELEASE_TRANSPARENCY_MASK
  • Ph_RELEASE_GHOST_BITMAP
  • Ph_RELEASE_IMAGE_ALL--free all the above.

This function doesn't release the image structure itself.


Note: Don't use PhReleaseImage() on an image acquired using PgReadScreen().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

ApGetImageRes(), PgDrawPhImage*(), PgDrawPhImageRect*(), PgDrawRepPhImage*(), PhCreateImage(), PhImage_t, PhMakeGhostBitmap(), PhMakeTransBitmap(), PmMemCreateMC(), PmMemFlush(), PxLoadImage()

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


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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026