Skip to main content

OH_Drawing_CanvasDrawRoundRect

Function OH_Drawing_CanvasDrawRoundRect 

Source
pub unsafe extern "C" fn OH_Drawing_CanvasDrawRoundRect(
    canvas: *mut OH_Drawing_Canvas,
    roundRect: *const OH_Drawing_RoundRect,
)
Expand description

@brief Draws a rounded rectangle. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If either canvas or roundRect is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param canvas Pointer to an OH_Drawing_Canvas object. @param roundRect Pointer to an OH_Drawing_RoundRect object. @since 11 @version 1.0