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

Problem to convert SVG from Visio to any other format #264

Closed
rabbiwan opened this issue Dec 9, 2016 · 1 comment
Closed

Problem to convert SVG from Visio to any other format #264

rabbiwan opened this issue Dec 9, 2016 · 1 comment

Comments

@rabbiwan
Copy link

rabbiwan commented Dec 9, 2016

Hello,
I have created SVG images from Visio and there images can't be convert with the tool.
I have a problem outofmemory at the draw.
The problem occurs when the points in the calculation are close to zero (midpoint, dy and dx).
The calcul create a float with an exhibitor very high and I think the method LinearGradientBrush can't run correctly.
Maybe I'm wrong...

This is the stack :
à System.Drawing.Drawing2D.LinearGradientBrush..ctor(PointF point1, PointF point2, Color color1, Color color2) à Svg.SvgLinearGradientServer.GetBrush(SvgVisualElement renderingElement, ISvgRenderer renderer, Single opacity, Boolean forStroke) dans C:\Dev\vvvv\SVG\Source\Painting\SvgLinearGradientServer.cs:ligne 164 à Svg.SvgVisualElement.RenderFill(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 201 à Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 172 à Svg.SvgVisualElement.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 129 à Svg.SvgElement.RenderChildren(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\SvgElement.cs:ligne 726 à Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 183 à Svg.SvgVisualElement.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 129 à Svg.SvgElement.RenderChildren(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\SvgElement.cs:ligne 726 à Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 183 à Svg.SvgVisualElement.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 129 à Svg.SvgElement.RenderChildren(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\SvgElement.cs:ligne 726 à Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 183 à Svg.SvgVisualElement.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Basic Shapes\SvgVisualElement.cs:ligne 129 à Svg.SvgElement.RenderChildren(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\SvgElement.cs:ligne 726 à Svg.SvgElement.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\SvgElement.cs:ligne 714 à Svg.SvgFragment.Render(ISvgRenderer renderer) dans C:\Dev\vvvv\SVG\Source\Document Structure\SvgFragment.cs:ligne 169 à Svg.SvgDocument.Draw(Bitmap bitmap) dans C:\Dev\vvvv\SVG\Source\SvgDocument.cs:ligne 501 à Svg.SvgDocument.Draw() dans C:\Dev\vvvv\SVG\Source\SvgDocument.cs:ligne 466

@mrbean-bremen
Copy link
Member

This is the same problem as #278. Closing this one as duplicate, as the newer one has a bit more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants