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 Get width number for OH_ImageSource_Info struct.

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