Package icyllis.arc3d.core
Class PathUtils
java.lang.Object
icyllis.arc3d.core.PathUtils
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
fillPathWithPaint
public static boolean fillPathWithPaint(@Nonnull Path src, @Nonnull Paint paint, @Nonnull Path dst, @Nullable Rect2fc cullRect, float resScale) Returns the filled equivalent of the stroked path.- Parameters:
src
- Path read to create a filled versionpaint
- Paint, from which attributes such as stroke cap, width, miter, and join, as well as pathEffect will be used.dst
- resulting Path; may be the same as src, but may not be nullptrcullRect
- optional limit passed to PathEffectresScale
- if > 1, increase precision, else if (0 invalid input: '<' resScale invalid input: '<' 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).
-
fillPathWithPaint
-