ControlPaint.CreateHBitmapColorMask(Bitmap, IntPtr) Méthode

Définition

Crée une HBITMAP Win32 hors de l'image.

public:
 static IntPtr CreateHBitmapColorMask(System::Drawing::Bitmap ^ bitmap, IntPtr monochromeMask);
public static IntPtr CreateHBitmapColorMask (System.Drawing.Bitmap bitmap, IntPtr monochromeMask);
static member CreateHBitmapColorMask : System.Drawing.Bitmap * nativeint -> nativeint
Public Shared Function CreateHBitmapColorMask (bitmap As Bitmap, monochromeMask As IntPtr) As IntPtr

Paramètres

bitmap
Bitmap

Bitmap à créer.

monochromeMask
IntPtr

nativeint

Pointeur sur le masque monochrome.

Retours

IntPtr

nativeint

Handle à l’image bitmap.

Exceptions

bitmap a la valeur null.

Remarques

L’appelant est responsable de l’allocation du HBITMAP. Si l’image utilise la transparence, l’arrière-plan est rempli avec la couleur spécifiée.

S’applique à