[]
The C1 SVG rendering feature enables loading, parsing and rendering Scalable Vector Graphics (SVG) across multiple platforms in an application, including WPF, WinUI, Android, and IOS. The rendering feature uses vector graphics to give a crisp and resolution-independent output, making the feature suitable for icons, illustrations, dashboards, and high-DPI applications.
Project-Specific APIs
C1.WebStandards.Svg.C1SvgDoc
Key Capabilities:
Display scalable graphics that maintain quality at different zoom levels
Integrate SVG assets from design tools without manual conversion
Reduce application size by using vector graphics instead of multiple bitmap resolutions
Maintain consistency with web-based SVG implementations
Render an SVG file in IOS application using the following code:
public override void Draw(CGRect rect)
{
using (var context = UIGraphics.GetCurrentContext())
{
context.DrawSvg(_doc, new CoreAnimation.CALayer { BackgroundColor = TintColor.CGColor }, Bounds);
}
}