Skip to main content

OH_ImageSourceInfo_GetWidth

Function OH_ImageSourceInfo_GetWidth 

Source
pub unsafe extern "C" fn OH_ImageSourceInfo_GetWidth(
    info: *mut OH_ImageSource_Info,
    width: *mut u32,
) -> Image_ErrorCode
Expand description

@brief Obtains the image width.

@param info Pointer to an OH_ImageSource_Info object. @param width Pointer to the image width, in px. @return {@link IMAGE_SUCCESS} if the execution is successful.
{@link IMAGE_BAD_PARAMETER} info is nullptr, or width is nullptr. @since 12