File: System\Drawing\Design\MetafileEditor.cs
Web Access
Project: src\src\System.Windows.Forms.Design\src\System.Windows.Forms.Design.csproj (System.Windows.Forms.Design)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Drawing.Imaging;
 
namespace System.Drawing.Design;
 
/// <summary>
///  Extends Image's editor class to provide default file searching for metafile (.emf) files.
/// </summary>
[CLSCompliant(false)]
public class MetafileEditor : ImageEditor
{
    protected override string GetFileDialogDescription() => SR.metafileFileDescription;
 
    protected override string[] GetExtensions() => ["emf", "wmf"];
 
    protected override Image LoadFromStream(Stream stream) => new Metafile(stream);
}