Skip to main content

OH_Drawing_BitmapGetWidth

Function OH_Drawing_BitmapGetWidth 

Source
pub unsafe extern "C" fn OH_Drawing_BitmapGetWidth(
    bitmap: *mut OH_Drawing_Bitmap,
) -> u32
Expand description

@brief Obtains the width of a bitmap. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If bitmap is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param bitmap Pointer to an OH_Drawing_Bitmap object. @return Returns the width. @since 8 @version 1.0