Bitmap-Konstruktor (Int32, Int32, Graphics)
Initialisiert eine neue Instanz der Bitmap-Klasse mit der angegebenen Größe und der Auflösung des angegebenen Graphics-Objekts.
Namespace: System.Drawing
Assembly: System.Drawing (in system.drawing.dll)
Syntax
'Declaration
Public Sub New ( _
width As Integer, _
height As Integer, _
g As Graphics _
)
'Usage
Dim width As Integer
Dim height As Integer
Dim g As Graphics
Dim instance As New Bitmap(width, height, g)
public Bitmap (
int width,
int height,
Graphics g
)
public:
Bitmap (
int width,
int height,
Graphics^ g
)
public Bitmap (
int width,
int height,
Graphics g
)
public function Bitmap (
width : int,
height : int,
g : Graphics
)
Parameter
- width
Die Breite der neuen Bitmap in Pixel.
- height
Die Höhe der neuen Bitmap in Pixel.
- g
Das Graphics-Objekt, das die Auflösung für die neue Bitmap angibt.
Ausnahmen
Ausnahmetyp | Bedingung |
---|---|
g ist NULL (Nothing in Visual Basic). |
Hinweise
Die neue von dieser Methode erstellte Bitmap verwendet die horizontale und vertikale Auflösung der DpiX-Eigenschaft bzw. der DpiY-Eigenschaft von g.
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