Skia
2D Graphics Library
skpathutils Namespace Reference

Functions

SK_API bool FillPathWithPaint (const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
 Returns the filled equivalent of the stroked path. More...
 
SK_API bool FillPathWithPaint (const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, const SkMatrix &ctm)
 
SK_API bool FillPathWithPaint (const SkPath &src, const SkPaint &paint, SkPath *dst)
 

Function Documentation

◆ FillPathWithPaint() [1/3]

SK_API bool skpathutils::FillPathWithPaint ( const SkPath src,
const SkPaint paint,
SkPath dst 
)

◆ FillPathWithPaint() [2/3]

SK_API bool skpathutils::FillPathWithPaint ( const SkPath src,
const SkPaint paint,
SkPath dst,
const SkRect cullRect,
const SkMatrix ctm 
)

◆ FillPathWithPaint() [3/3]

SK_API bool skpathutils::FillPathWithPaint ( const SkPath src,
const SkPaint paint,
SkPath dst,
const SkRect cullRect,
SkScalar  resScale = 1 
)

Returns the filled equivalent of the stroked path.

Parameters
srcSkPath read to create a filled version
paintSkPaint, from which attributes such as stroke cap, width, miter, and join, as well as pathEffect will be used.
dstresulting SkPath; may be the same as src, but may not be nullptr
cullRectoptional limit passed to SkPathEffect
resScaleif > 1, increase precision, else if (0 < resScale < 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).