-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SKPath iteration #68
Comments
Can you point us to a sample that you would like to replicate so we can study the approach to take? |
@migueldeicaza I don't have a sample written, but the motivating use case (for me) is to traverse SKPaths in order to compute bounding boxes. I know there exist other Skia methods for computing rough bounding boxes, but I need tight boxes including path effects like stroking, and I haven't found methods that do that yet. Currently I'm accomplishing it by maintaining "shadow" paths in my C# code, e.g. just lists of the SKPoints, which allows me to traverse the points to compute the bounding boxes. It's fine with me if you'd like to close this issue, as perhaps it's outside of the scope of what SkiaSharp should worry about. |
Would the skia PathMeasure class help with this? |
This has been implemented. |
It would be nice to wrap the
SKPath::Iter
class for iterating over paths.The text was updated successfully, but these errors were encountered: