Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Chart for .NET
»
ArgumentException is thrown when trying to create a SVG Image from the...
ArgumentException is thrown when trying to create a SVG Image from the stream produced by...
Post Reply
ArgumentException is thrown when trying to create a SVG Image from the...
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Irina
Irina
posted 9 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 23,
Visits: 306
Hi,
I'm using the code from
https://www.nevron.com/Forum/11860/ArgumentException-is-thrown-when-trying-to-create-an-Image-from-the-stream-produced-by-ImageExporter
topic to create a SVG image, but it does not work. I'm getting
System.ArgumentException
var memoryStream = new MemoryStream();
nChartControl1.ImageExporter.SaveToStream(memoryStream, new NSize(500, 500), NResolution.ScreenResolution, new NSvgImageFormat());
memoryStream.Seek(0, SeekOrigin.Begin);
var image = Image.FromStream(memoryStream);
How the exception can be prevented?
Thank you
Reply
Like
0
Nevron Support
Nevron Support
posted 9 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi Irina,
.NET image class does not support SVG image format - you can create it from a metafile or png image for example.
Best Regards,
Nevron Support Team
Reply
Like
0
Irina
Irina
posted 9 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 23,
Visits: 306
Hi,
Thank you for the explanation.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search