Skip to content
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

Closed
tdenniston opened this issue Apr 24, 2016 · 4 comments
Closed

SKPath iteration #68

tdenniston opened this issue Apr 24, 2016 · 4 comments

Comments

@tdenniston
Copy link
Contributor

It would be nice to wrap the SKPath::Iter class for iterating over paths.

tdenniston added a commit to tdenniston/SkiaSharp that referenced this issue Apr 24, 2016
@migueldeicaza
Copy link
Contributor

Can you point us to a sample that you would like to replicate so we can study the approach to take?

@tdenniston
Copy link
Contributor Author

@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.

@mat72
Copy link

mat72 commented Jun 5, 2016

Would the skia PathMeasure class help with this?

@migueldeicaza
Copy link
Contributor

This has been implemented.

@mattleibow mattleibow added this to To Be Classified in Previous Releases Jul 26, 2018
@ghost ghost locked as resolved and limited conversation to collaborators Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Previous Releases
To Be Classified
Development

No branches or pull requests

3 participants