|
// 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);
}
|