You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OnDoc/packages/Syncfusion.MetafileRenderer...
Stefan Hutter 4093f8764d
update 20241224
12 months ago
..
lib update 20241224 12 months ago
.signature.p7s update 20241224 12 months ago
LICENSE.txt update 20241224 12 months ago
README.md update 20241224 12 months ago
Syncfusion.MetafileRenderer.NET.28.1.33.nupkg update 20241224 12 months ago
syncfusion_logo.png update 20241224 12 months ago

README.md

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Syncfusion® .NET Metafile Renderer library

The Metafile Renderer is a .NET library used by Syncfusion® Document Processing Libraries for converting the Metafile (EMF and WMF) to SKBitmap image in any .NET applications.

Key Features

  • Supports converting Metafiles to image format supported by SkiaSharp.

System Requirements

Getting Started

You can fetch the Syncfusion® .NET MetafileRenderer library NuGet by simply running Install-Package Syncfusion.MetafileRenderer.NET 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. Syncfusions 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 27,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies. Today, we provide 1700+ components and frameworks for web (Blazor, Flutter, ASP.NET Core, ASP.NET MVC, ASP.NET Web Forms, JavaScript, Angular, React, Vue, and jQuery), mobile (.NET MAUI (Preview), Flutter, Xamarin, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, .NET MAUI (Preview), Flutter,Xamarin, 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.

sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET