How to load SVG images in the .NET MAUI Image Editor (SfImageEditor)?
The Syncfusion® .NET MAUI Image Editor allows you to load SVG images. This article demonstrates how to load SVG images in the image editor.
XAML:
Initiate the Image Editor control and provide the source image.
<imageEditor:SfImageEditor x:Name="imageEditor" Source="dove.png"/>
While adding an SVG image (dove.svg) to your project, reference the image in the Source property with a .png
extension (dove.png).
SVG files are converted to PNG files by .NET MAUI. As a result, an SVG file added to your .NET MAUI app project should be referenced from XAML or C# and have a .png
extension.
Output:
Conclusion
I hope you enjoyed learning how to load SVG images in the .NET MAUI Image Editor (SfImageEditor).
Refer to our .NET MAUI Image Editor feature tour page for other groundbreaking feature representations. You can also explore our .NET MAUI Image Editor documentation to understand how to present and manipulate data.
Check out our .NET MAUI components from the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to check out our .NET MAUI Image Editor and other .NET MAUI components.
Please let us know in the following comment section if you have any queries or require clarification. Contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!