8 instantiations of Metafile
PresentationFramework-SystemDrawing (3)
SystemDrawingExtension.cs (3)
35
internal override object GetMetafileFromHemf(nint hMetafile) => new
Metafile
(hMetafile, deleteEmf: false);
61
Metafile metafile =
new
(handle, deleteEmf: false);
91
Metafile metafile =
new
(metafileStream);
System.Drawing.Common (2)
System\Drawing\Image.cs (1)
861
GdiPlus.ImageType.ImageTypeMetafile => new
Metafile
((nint)nativeImage),
System\Drawing\Printing\PreviewPrintController.cs (1)
65
Metafile metafile =
new
(
System.Windows.Forms.Design (1)
System\Drawing\Design\MetafileEditor.cs (1)
18
protected override Image LoadFromStream(Stream stream) => new
Metafile
(stream);
System.Windows.Forms.Primitives (2)
System\Drawing\ImageExtensions.cs (2)
35
using (Metafile metafile =
new
((HMETAFILE)handle, header, deleteWmf: false))
41
using (Metafile metafile =
new
((HENHMETAFILE)handle, deleteEmf: false))
116 references to Metafile
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
27
internal override bool IsMetafile(object? data) => data is
Metafile
;
31
Metafile
metafile => metafile.GetHenhmetafile(),
61
Metafile
metafile = new(handle, deleteEmf: false);
91
Metafile
metafile = new(metafileStream);
System.Drawing (1)
System.Drawing.cs (1)
92
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Imaging.
Metafile
))]
System.Drawing.Common (106)
System\Drawing\Graphics.cs (36)
2449
public void EnumerateMetafile(
Metafile
metafile, PointF destPoint, EnumerateMetafileProc callback) =>
2452
public void EnumerateMetafile(
Metafile
metafile, PointF destPoint, EnumerateMetafileProc callback, IntPtr callbackData) =>
2455
public void EnumerateMetafile(
Metafile
metafile, Point destPoint, EnumerateMetafileProc callback) =>
2458
public void EnumerateMetafile(
Metafile
metafile, Point destPoint, EnumerateMetafileProc callback, IntPtr callbackData) =>
2461
public void EnumerateMetafile(
Metafile
metafile, RectangleF destRect, EnumerateMetafileProc callback) =>
2464
public void EnumerateMetafile(
Metafile
metafile, RectangleF destRect, EnumerateMetafileProc callback, IntPtr callbackData) =>
2467
public void EnumerateMetafile(
Metafile
metafile, Rectangle destRect, EnumerateMetafileProc callback) =>
2470
public void EnumerateMetafile(
Metafile
metafile, Rectangle destRect, EnumerateMetafileProc callback, IntPtr callbackData) =>
2473
public void EnumerateMetafile(
Metafile
metafile, PointF[] destPoints, EnumerateMetafileProc callback) =>
2477
Metafile
metafile,
2482
public void EnumerateMetafile(
Metafile
metafile, Point[] destPoints, EnumerateMetafileProc callback) =>
2485
public void EnumerateMetafile(
Metafile
metafile, Point[] destPoints, EnumerateMetafileProc callback, IntPtr callbackData) =>
2489
Metafile
metafile,
2496
Metafile
metafile,
2504
Metafile
metafile,
2511
Metafile
metafile,
2519
Metafile
metafile,
2526
Metafile
metafile,
2534
Metafile
metafile,
2541
Metafile
metafile,
2549
Metafile
metafile,
2556
Metafile
metafile,
2564
Metafile
metafile,
2571
Metafile
metafile,
2940
Metafile
metafile,
2961
Metafile
metafile,
2969
Metafile
metafile,
2990
Metafile
metafile,
2997
Metafile
metafile,
3026
Metafile
metafile,
3055
Metafile
metafile,
3080
Metafile
metafile,
3096
Metafile
metafile,
3121
Metafile
metafile,
3130
Metafile
metafile,
3163
Metafile
metafile,
System\Drawing\Imaging\Metafile.cs (46)
27
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified handle and
46
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified handle and
57
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified filename.
72
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
81
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified handle to a device context.
89
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
98
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
107
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
116
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
139
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
148
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
157
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
165
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
173
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
181
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
189
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
197
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
205
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
235
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
243
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
251
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
259
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
267
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified data stream.
275
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified data stream.
283
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified data stream.
291
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
299
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
307
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified data stream.
315
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
323
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
331
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified handle and
340
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified stream.
353
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified handle to a device context.
373
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified device context, bounded
397
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
422
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
448
/// Initializes a new instance of the <see cref='
Metafile
'/> class from the specified data stream.
472
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
497
/// Initializes a new instance of the <see cref='
Metafile
'/> class with the specified filename.
526
/// Initializes a new instance of the <see cref="
Metafile
"/> class from a native metafile handle.
553
/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='
Metafile
'/>.
568
/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='
Metafile
'/>.
581
/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='
Metafile
'/>.
599
/// Returns the <see cref='MetafileHeader'/> associated with the specified <see cref='
Metafile
'/>.
616
/// Returns the <see cref='MetafileHeader'/> associated with this <see cref='
Metafile
'/>.
631
/// Returns a Windows handle to an enhanced <see cref='
Metafile
'/>.
System\Drawing\Imaging\MetafileFrameUnit.cs (1)
8
/// This is specified during the creation of the <see cref='
Metafile
'/>.
System\Drawing\Imaging\MetafileHeader.cs (18)
9
/// Contains attributes of an associated <see cref='
Metafile
'/>.
21
/// Gets the type of the associated <see cref='
Metafile
'/>.
26
/// Gets the size, in bytes, of the associated <see cref='
Metafile
'/>.
31
/// Gets the version number of the associated <see cref='
Metafile
'/>.
36
/// Gets the horizontal resolution, in dots-per-inch, of the associated <see cref='
Metafile
'/>.
41
/// Gets the vertical resolution, in dots-per-inch, of the associated <see cref='
Metafile
'/>.
46
/// Gets a <see cref='Rectangle'/> that bounds the associated <see cref='
Metafile
'/>.
51
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Windows metafile format.
56
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Windows Placeable metafile format.
61
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Windows enhanced metafile format.
66
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Windows enhanced
74
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Windows enhanced
81
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is in the Dual enhanced metafile
87
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> supports only the Windows
93
/// Returns a value indicating whether the associated <see cref='
Metafile
'/> is device-dependent.
98
/// Gets the WMF header file for the associated <see cref='
Metafile
'/>.
110
/// Gets the logical horizontal resolution, in dots-per-inch, of the associated <see cref='
Metafile
'/>.
115
/// Gets the logical vertical resolution, in dots-per-inch, of the associated <see cref='
Metafile
'/>.
System\Drawing\Imaging\MetafileType.cs (1)
7
/// Specifies the format of a <see cref='
Metafile
'/>.
System\Drawing\Imaging\MetaHeader.cs (2)
24
/// Represents the type of the associated <see cref='
Metafile
'/>.
51
/// Represents the size, in bytes, of the associated <see cref='
Metafile
'/>.
System\Drawing\PointerExtensions.cs (1)
28
public static GpMetafile* Pointer(this
Metafile
? metafile) => metafile is null ? null : (GpMetafile*)((Image)metafile).Pointer();
System\Drawing\Printing\PreviewPrintController.cs (1)
65
Metafile
metafile = new(
System.Windows.Forms (3)
System\Drawing\Design\UITypeEditor.cs (1)
59
[typeof(
Metafile
)] = $"System.Drawing.Design.MetafileEditor, {Assemblies.SystemDrawingDesign}",
System\Windows\Forms\Control.cs (1)
4927
/// or <see cref="Drawing.Imaging.
Metafile
"/>) or some <see cref="object"/> that implements
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2142
/// either be a base managed class (<see cref="string"/>, <see cref="Bitmap"/>, or <see cref="
Metafile
"/>)
System.Windows.Forms.Primitives (2)
System\Drawing\ImageExtensions.cs (2)
35
using (
Metafile
metafile = new((HMETAFILE)handle, header, deleteWmf: false))
41
using (
Metafile
metafile = new((HENHMETAFILE)handle, deleteEmf: false))