Skip to main content

OH_Drawing_PathGetMatrix

Function OH_Drawing_PathGetMatrix 

Source
pub unsafe extern "C" fn OH_Drawing_PathGetMatrix(
    path: *mut OH_Drawing_Path,
    forceClosed: bool,
    distance: f32,
    matrix: *mut OH_Drawing_Matrix,
    flag: OH_Drawing_PathMeasureMatrixFlags,
) -> bool
Expand description

@brief Computes the corresponding matrix at the specified distance.

@syscap SystemCapability.Graphic.Graphic2D.NativeDrawing @param path Indicates the pointer to an OH_Drawing_Path object. @param forceClosed Whether to close the Path. @param distance The distance from the start of the Path. @param matrix Indicates the pointer to an OH_Drawing_Matrix object. @param flag Indicates what should be returned in the matrix. @return Returns false if path is nullptr or zero-length; returns true if path is not nullptr and not zero-length. @since 12 @version 1.0