EmfType Enum

Definition

Specifies the nature of the records that are placed in an Enhanced Metafile (EMF) file. This enumeration is used by several constructors in the Metafile class.

C#
public enum EmfType
Inheritance

Fields

Name Value Description
EmfOnly 3

Specifies that all the records in the metafile are EMF records, which can be displayed by GDI or GDI+.

EmfPlusOnly 4

Specifies that all the records in the metafile are EMF+ records, which can be displayed by GDI+ but not by GDI.

EmfPlusDual 5

Specifies that all EMF+ records in the metafile are associated with an alternate EMF record. Metafiles of type EmfPlusDual can be displayed by GDI or by GDI+.

Remarks

GDI+ uses the enhanced Windows metafile image format (EMF). The EMF format contains a comment mechanism for embedding data within the metafile. This comment mechanism is used to embed GDI+ records within an EMF file. EMF files that contain GDI+ data are called EMF+ files. Applications that do not recognize the comment data skip the comment records and render the records they do understand. If the EMF+ file is played back by GDI+, then the GDI+ records are used to render the metafile; otherwise, the GDI records (if present) are used.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9