Duplicate an image
PhImage_t *PiDuplicateImage( PhImage_t *image, int flags );
This function creates a duplicate of the Photon image defined in the PhImage_t structure pointed to by image. PiDuplicateImage() does a “deep copy” of the PhImage_t, meaning it copies not only the structure itself but also any data associated with it such as the palette and image pixel data.
|If you set the Pi_FREE flag, the function will free the old image by setting all its release flags and calling PhReleaseImage() on it.|
A pointer to the new image on success, or NULL if an error occurred.
PhCreateImage(), PhImage_t, PiConvertImage(), PiCropImage(), PiFlipImage(), PiResizeImage
“Images” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide