pub unsafe extern "C" fn OH_DecodingOptions_SetDesiredRegion(
options: *mut OH_DecodingOptions,
desiredRegion: *mut Image_Region,
) -> Image_ErrorCodeExpand description
@brief Sets the region to decode. The actual decoding will process the entire original image, without any regional decoding effect. Starting from API version 19, you are advised to use {@link OH_DecodingOptions_SetCropRegion} 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 or desiredRegion is nullptr.
@since 12