-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Shapes: FeatureRequest - Copy functionality for AddArc on PathBuilder #4
Comments
I would also find this really useful - being able to add an arc is something that is missing when trying to render an SVG-style path (which has an arc command). |
Given that the arcs can be sections of circles or ellipses, I'd like if there were two new classes |
As a workaround, here are some useful formula to approximate the arcs with bezier curves: https://stackoverflow.com/a/44829356/323447 |
@JimBobSquarePants @tocsoft is this feature planned? |
nothing is planned from us at this stage. But would be happy to receive a PR implementing this. |
I've added the "help wanted" label to this issue as it is a feature I do believe we require but will need assistance in delivering. |
I started implementing this feature here. Right now I'm struggeling to implement the Transform Method for the EllipticalArcLineSegment maybe Someone here can have a look and help me. |
@derBobo That's awesome thanks! If you raise a draft PR against this repository we can all work together to get it completed. |
I'll do that later this week, first I have to finish some stuff for my work.
|
Triaging to RC1 now since we hoping in community help, we can push it out later, if we see that we can't make it. |
The pr #144 is merged now, so this issue can be closed. |
Thanks @derBobo !! |
Prequisites
DEBUG
andRELEASE
modeDescription
Recently we've been encountering numerous "Error occured in GDI+" issues and even after attempting to dispose of everything correctly the issue still occurs with no consistency. In case this issue ever started happening all the time live sites we wanted to preemptively use an alternative for our image creation for in ASP.NET (WebAPI + MVC)
All features we use seem to already have been ported over to ImageSharp however currently there seems to be no way of adding an arc to a Path in the same way GraphicsPath works in System.Drawing, preventing any sort of exact logic replacement. I contemplated trying to do something similar with a bezier like in the samples however it seemed overkill.
I imagine it would be integrated into PathBuilder however it will need to be drawn on top of an existing image (which would previously have been in the graphics object). It seems the existing implementation with Polygon simply saves the image off directly however there might be a way to get this working with the existing code base I'm unaware of using "Fill". If an implementation for this does exist please let me know and close this issue.
Steps to Reproduce
Example System.Drawing code to replicate in code:
And resulting picture image:
If you need more information please let me know. Also, thanks for creating this library! It seems Microsoft gave up a long time ago on GDI+ issues.
System Configuration
The text was updated successfully, but these errors were encountered: