Syncfusion.Xamarin.MetafileRenderer
The Metafile Renderer is a Xamarin library used by Syncfusion® Document Processing Libraries for converting the Metafile (EMF and WMF) to SKBitmap image in any Xamarin applications.
Install
No framework information available.
README
Syncfusion® Xamarin MetafileRenderer library
The Metafile Renderer is a Xamarin library used by Syncfusion® Document Processing Libraries for converting the Metafile (EMF and WMF) to SKBitmap image in any Xamarin applications.
Key Features
- Supports converting Metafiles to image format supported by SkiaSharp.
System Requirements
Getting Started
You can fetch the Syncfusion® Xamarin MetafileRenderer library NuGet by simply running the command Install-Package Syncfusion.Xamarin.MetafileRenderer from the Package Manager Console in Visual Studio.
Try the following code example to convert the Metafile to SKBitmap image.
//Load the Metafile.
FileStream docStream = new FileStream(Path.GetFullPath("Input.emf"), FileMode.Open, FileAccess.Read);
//Create a new instance for the MetafileRenderer
MetafileRenderer renderer = new MetafileRenderer();
//Convert the Metafile to SKBitmap Image.
SKBitmap skBitmap = renderer.ConvertToImage(docStream);
//Save the image as stream
using (SKImage skImage = SKImage.FromBitmap(skBitmap))
using (SKData data = skImage.Encode(SKEncodedImageFormat.Png, 100))
using (FileStream stream = new FileStream(Path.GetFullPath("Output.png"), FileMode.Create, FileAccess.ReadWrite))
{
data.SaveTo(stream);
}
License
This is a commercial product and requires a paid license for possession or use. Syncfusion® licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a license here or start a free 30-day trial here.
About Syncfusion®
Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion® has more than 29,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.
Today, we provide 1800+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI(Preview), Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
[email protected] | www.syncfusion.com | Toll Free: 1-888-9 DOTNET
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.