A free library which is a valuable part of SMath Studio engine. It is responsible for platform independent graphics and native SVG drawing.
$ dotnet add package SMathStudio.DrawingA free library which is a valuable part of SMath Studio engine. It is responsible for platform independent graphics and native SVG drawing.
// Draw Ellipse to SVG example
using var ms = new MemoryStream();
using var graphics = new SvgGraphics(ms, new Size(100, 100), false, false)
graphics.DrawEllipse(ColorPens.Navy, 50, 50, 80, 40);
var result = new UTF8Encoding(false).GetString(ms.ToArray());
// result will contain:
// <svg viewBox="-0.5 -0.5 101 101" width="101px" height="101px" xmlns="http://www.w3.org/2000/svg"><defs><style type="text/css">text {font-family: Courier New, Courier, mono;}</style></defs><ellipse fill="none" stroke="#000080" stroke-width="1px" cx="90" cy="70" rx="40" ry="20" /></svg>
Ask support questions to support@smath.com
The API documentation is the best place to start.
Also check our Wiki.