ControlPaint.CreateHBitmapColorMask-Methode

Erstellt eine Win32-HBITMAP aus dem Bild.

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

Syntax

'Declaration
Public Shared Function CreateHBitmapColorMask ( _
    bitmap As Bitmap, _
    monochromeMask As IntPtr _
) As IntPtr
'Usage
Dim bitmap As Bitmap
Dim monochromeMask As IntPtr
Dim returnValue As IntPtr

returnValue = ControlPaint.CreateHBitmapColorMask(bitmap, monochromeMask)
public static IntPtr CreateHBitmapColorMask (
    Bitmap bitmap,
    IntPtr monochromeMask
)
public:
static IntPtr CreateHBitmapColorMask (
    Bitmap^ bitmap, 
    IntPtr monochromeMask
)
public static IntPtr CreateHBitmapColorMask (
    Bitmap bitmap, 
    IntPtr monochromeMask
)
public static function CreateHBitmapColorMask (
    bitmap : Bitmap, 
    monochromeMask : IntPtr
) : IntPtr

Parameter

  • bitmap
    Die zu erstellende Bitmap.
  • monochromeMask
    Ein Zeiger auf die monochrome Maske.

Rückgabewert

IntPtr zur Darstellung des Handles für die Bitmap.

Hinweise

Sie sind für das Freigeben der HBITMAP verantwortlich. Wenn das Bild transparent angezeigt wird, wird der Hintergrund mit der angegebenen Farbe ausgefüllt.

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