Enum MetafileKind
What a Metafile holds.
public enum MetafileKind
Fields
Emf = 1An Enhanced Metafile with GDI records only; EMZ when gzip-compressed.
EmfPlusDual = 2An EMF with EMF+ records and, beside them, GDI records that draw the same picture for programs without GDI+.
EmfPlusOnly = 3An EMF whose picture is in EMF+ records only.
Wmf = 0A Windows Metafile (16-bit records), with or without a placeable header; WMZ when gzip-compressed.
Examples
// WMF, EMF and EMF+ alike, and the gzip forms WMZ and EMZ.
Metafile chart = Metafile.Load(path);
Console.WriteLine($"{chart.Kind}, {chart.Size.X} by {chart.Size.Y} points");
// At twice the screen's resolution, over white; text uses the installed fonts.
using Raster<Rgba8> image = chart.Rasterize<Rgba8>(new MetafileRenderOptions
{
Dpi = 192,
Background = new RgbaF32(1, 1, 1, 1),
});
image.Save(output);