Function fill_path_with_paint
pub fn fill_path_with_paint<'a>(
src: &Handle<SkPath>,
paint: &Handle<SkPaint>,
dst: &mut Handle<SkPath>,
cull_rect: impl Into<Option<&'a Rect>>,
matrix: impl Into<Option<Matrix>>,
) -> bool
Expand description
Returns the filled equivalent of the stroked path.
src
-Path
read to create a filled versionpaint
-Paint
, from which attributes such as stroke cap, width, miter, and join, as well aspath_effect
will be used.dst
- resultingPath
cull_rect
- optional limit passed tocrate::PathEffect
matrix
- if scale > 1, increase precision, else if (0 < scale < 1) reduce precision to favor speed and size
Returns: true
if the dst path was updated, false
if it was not (e.g. if the path
represents hairline and cannot be filled).