Skip to main content

OH_DecodingOptions_GetDesiredRegion

Function OH_DecodingOptions_GetDesiredRegion 

Source
pub unsafe extern "C" fn OH_DecodingOptions_GetDesiredRegion(
    options: *mut OH_DecodingOptions,
    desiredRegion: *mut Image_Region,
) -> Image_ErrorCode
Expand description

@brief Obtains the region to decode. Since the corresponding SetDesiredRegion function cannot meet the regional decoding requirements, starting from API version 19, you are advised to use {@link OH_DecodingOptions_GetCropRegion} instead.

@param options Pointer to an OH_DecodingOptions object. @param desiredRegion Pointer to the region to decode. @return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER} options is nullptr, or desiredRegion is nullptr. @since 12