Skip to main content

OH_Drawing_ImageGetWidth

Function OH_Drawing_ImageGetWidth 

Source
pub unsafe extern "C" fn OH_Drawing_ImageGetWidth(
    image: *mut OH_Drawing_Image,
) -> i32
Expand description

@brief Obtains the image width, that is, the number of pixels in each line. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If image is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param image Pointer to the {@link OH_Drawing_Image} object. @return Returns the width. @since 12 @version 1.0