![]()  | 
![]()  | 
![]()  | 
![]()  | 
Resize an image to the specified size
PhImage_t *PiResizeImage( PhImage_t *image,
                          PhRect_t const *bounds,
                          short w,
                          short h,
                          int flags )
ph
This function resizes a Photon image, making it larger or smaller. It allocates space for the resulting image, leaving the original image untouched. If you set the Pi_FREE flag bit, the function frees the old image by setting all its release flags and calling PhReleaseImage() on it.
A pointer to the new, resized image on success, or NULL if an error occurred.
For an example that uses this function, see PiConvertImage().
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PhCreateImage(), PhImage_t, PhRect_t, PiConvertImage(), PiCropImage(), PiDuplicateImage(), PiFlipImage()
“Images” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide
![]()  | 
![]()  | 
![]()  | 
![]()  |