Freigeben über


ControlPaint.CreateHBitmap16Bit-Methode

Erstellt eine 16-Bit-Farbbitmap.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
Public Shared Function CreateHBitmap16Bit ( _
    bitmap As Bitmap, _
    background As Color _
) As IntPtr
'Usage
Dim bitmap As Bitmap
Dim background As Color
Dim returnValue As IntPtr

returnValue = ControlPaint.CreateHBitmap16Bit(bitmap, background)
public static IntPtr CreateHBitmap16Bit (
    Bitmap bitmap,
    Color background
)
public:
static IntPtr CreateHBitmap16Bit (
    Bitmap^ bitmap, 
    Color background
)
public static IntPtr CreateHBitmap16Bit (
    Bitmap bitmap, 
    Color background
)
public static function CreateHBitmap16Bit (
    bitmap : Bitmap, 
    background : Color
) : IntPtr

Parameter

  • bitmap
    Die zu erstellende Bitmap.
  • background
    Die Color des Hintergrunds.

Rückgabewert

IntPtr zur Darstellung des Handles für die Bitmap.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, 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

ControlPaint-Klasse
ControlPaint-Member
System.Windows.Forms-Namespace