Freigeben über


Metafile-Konstruktor (IntPtr, Rectangle, MetafileFrameUnit, EmfType)

Initialisiert eine neue Instanz der Metafile-Klasse aus dem angegebenen Gerätekontext, die vom angegebenen Rechteck unter Verwendung der bereitgestellten Maßeinheit umschlossen wird, und eine neue Instanz der EmfType-Enumeration, die das Format der Metafile angibt.

Namespace: System.Drawing.Imaging
Assembly: System.Drawing (in system.drawing.dll)

Syntax

'Declaration
Public Sub New ( _
    referenceHdc As IntPtr, _
    frameRect As Rectangle, _
    frameUnit As MetafileFrameUnit, _
    type As EmfType _
)
'Usage
Dim referenceHdc As IntPtr
Dim frameRect As Rectangle
Dim frameUnit As MetafileFrameUnit
Dim type As EmfType

Dim instance As New Metafile(referenceHdc, frameRect, frameUnit, type)
public Metafile (
    IntPtr referenceHdc,
    Rectangle frameRect,
    MetafileFrameUnit frameUnit,
    EmfType type
)
public:
Metafile (
    IntPtr referenceHdc, 
    Rectangle frameRect, 
    MetafileFrameUnit frameUnit, 
    EmfType type
)
public Metafile (
    IntPtr referenceHdc, 
    Rectangle frameRect, 
    MetafileFrameUnit frameUnit, 
    EmfType type
)
public function Metafile (
    referenceHdc : IntPtr, 
    frameRect : Rectangle, 
    frameUnit : MetafileFrameUnit, 
    type : EmfType
)

Parameter

  • referenceHdc
    Das Handle für einen Gerätekontext.
  • frameRect
    Ein Rectangle, das das Rechteck darstellt, das die neue Metafile umschließt.
  • type
    Ein EmfType, der das Format der Metafile angibt.

.NET Framework-Sicherheit

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

Metafile-Klasse
Metafile-Member
System.Drawing.Imaging-Namespace