Comments (3)
I have a similar issue as well:
NullReferenceException: Object reference not set to an instance of an object Svg.SvgElementIdManager.GetElementById (System.Uri uri) (at C:/Dev/vvvv/SVG/Source/SvgElementIdManager.cs:44) Svg.SvgUse.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Document Structure/SvgUse.cs:77) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgVisualElement.Render (ISvgRenderer renderer, Boolean renderFilter) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:183) Svg.SvgVisualElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:129) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgVisualElement.Render (ISvgRenderer renderer, Boolean renderFilter) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:183) Svg.SvgVisualElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Basic Shapes/SvgVisualElement.cs:129) Svg.SvgElement.RenderChildren (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:726) Svg.SvgElement.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/SvgElement.cs:714) Svg.SvgFragment.Render (ISvgRenderer renderer) (at C:/Dev/vvvv/SVG/Source/Document Structure/SvgFragment.cs:169) Svg.SvgDocument.Draw (System.Drawing.Bitmap bitmap) (at C:/Dev/vvvv/SVG/Source/SvgDocument.cs:496)
The SVG I am trying to draw is at http://pastebin.com/vGmvTSU8
Could somebody give me some pointers here? It all renders in several browsers. Interesting is that I am able to render in VisualStudio, but not when I use my DLL in Unity3D.
It'd be great if you could take a look @gregsn or if @rfoltz could explain whether it was ever solved for him?
from svg.
Nevermind... Just discovered that System.Drawing is not available in Unity and I need to find an alternative way to render in Png or use a library that can visualize SVG in Unity. The latter approach gave me low quality results though, but we'll see what happens.
from svg.
Looks like this is the same problem that will be fixed with #377.
from svg.
Related Issues (20)
- Is it possible to vectorize text paths?
- SVG rendered to PNG is all black instead of a gradient
- Draw Svg in Svg with different ViewBox
- Looking for new maintainer(s) HOT 41
- Contributors: Planned Cleanup - please comment HOT 7
- Contributors: TargetFrameworks - please comment HOT 1
- Contributors: Code Generators HOT 1
- Contributors: ISvgEventCaller and Events Support HOT 1
- Contributors: Extension Methods HOT 2
- letter-spacing overlapping text when converting to png HOT 1
- The Icon file converted from the SVG file does not render properly in the Application Icon of the Form.
- The Icon file converted from the SVG file does not render properly in the Application Icon of the Form. HOT 1
- Diverse problems with text alignment when rendering to EMF HOT 3
- CSS Outline not working HOT 2
- Bounds not correctly computed for texts and groups HOT 5
- anti
- SvgDocument.Ppi not works as expect (2 problems)
- Logo get rendered incorrect HOT 1
- Documentation generation is broken HOT 1
- Incorrect bounds if a path has 0 length
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg.