The PrlApi_ScaleImage scales image and put a new image to a buffer.
PRL_RESULT PrlApi_ScaleImage( PRL_CONST_VOID_PTR pOriginalImage, PRL_UINT32 nOriginalImageSize, PRL_IMAGE_FORMAT nFormat, PRL_INT32 nQuality, PRL_UINT32 nScaleWidth, PRL_UINT32 nScaleHeight, PRL_VOID_PTR pNewImage, PRL_UINT32_PTR pnNewImageSize );
PrlApiCore.h
PRL_RESULT. Possible values:
PRL_ERR_INVALID_ARG - invalid handle or null pointer was passed.
PRL_ERR_BUFFER_OVERRUN - the size of the output buffer is not large enough. The parameter that is used to specify the size will contain the required size.
PRL_ERR_NO_DATA - incorrect image format.
PRL_ERR_SUCCESS - function completed successfully.