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 Set desiredRegion number for OH_DecodingOptions struct.

@param options The OH_DecodingOptions pointer will be operated. @param desiredRegion the number of image desiredRegion. @return Returns one of the following result codes: {@link IMAGE_SUCCESS} if the execution is successful. {@link IMAGE_BAD_PARAMETER} options is nullptr, or desiredRegion is nullptr. @since 12