Function skia_safe::path_utils::fill_path_with_paint
source · pub fn fill_path_with_paint<'a>(
src: &Path,
paint: &Paint,
dst: &mut Path,
cull_rect: impl Into<Option<&'a Rect>>,
matrix: impl Into<Option<Matrix>>
) -> boolExpand description
Returns the filled equivalent of the stroked path.
src-Pathread to create a filled versionpaint-Paint, from which attributes such as stroke cap, width, miter, and join, as well aspath_effectwill be used.dst- resultingPathcull_rect- optional limit passed tocrate::PathEffectmatrix- if scale > 1, increase precision, else if (0 < scale < 1) reduce precision to favor speed and size Returns:trueif the dst path was updated,falseif it was not (e.g. if the path represents hairline and cannot be filled).