pub unsafe extern "C" fn OH_Drawing_CreateDashPathEffect(
intervals: *mut f32,
count: c_int,
phase: f32,
) -> *mut OH_Drawing_PathEffectExpand description
@brief Creates a dashed path effect. The dashed line effect is determined by a group of “on” and “off” intervals. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If intervals is NULL or count is less than or equal to 0, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@param intervals Pointer to the start address of the dashed line interval array. In the array, an even entry indicates an “on” interval and an odd entry indicates an “off” interval. The unit is px. @param count Number of entries in the dashed line interval array. The value must be an even number greater than 0. @param phase Offset in the dashed line interval array. @return Returns a pointer to the created {@link OH_Drawing_PathEffect} object. @since 12 @version 1.0