Skip to main content

OH_Drawing_PenGetFillPath

Function OH_Drawing_PenGetFillPath 

Source
pub unsafe extern "C" fn OH_Drawing_PenGetFillPath(
    pen: *mut OH_Drawing_Pen,
    src: *const OH_Drawing_Path,
    dst: *mut OH_Drawing_Path,
    rect: *const OH_Drawing_Rect,
    matrix: *const OH_Drawing_Matrix,
) -> bool
Expand description

@brief Obtains the source path outline drawn using this pen and represents it using a destination path. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If any of pen, src, and dst is NULL, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.

@param pen Pointer to the {@link OH_Drawing_Pen} object. @param src Pointer to the source {@link OH_Drawing_Path} object. @param dst Pointer to the target {@link OH_Drawing_Path} object. @param rect Pointer to an {@link OH_Drawing_Rect} object. NULL is recommended. @param matrix Pointer to an {@link OH_Drawing_Matrix} object. NULL is recommended. The default value is an identity matrix. @return Returns true if the destination path is obtained; returns false otherwise. @since 12 @version 1.0