ControlPaint.CreateHBitmapColorMask(Bitmap, IntPtr) Metod

Definition

Skapar en Win32 HBITMAP ur avbildningen.

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

Parametrar

bitmap
Bitmap

Att Bitmap skapa.

monochromeMask
IntPtr

nativeint

En pekare till den monokroma masken.

Returer

IntPtr

nativeint

Handtaget till bitmappen.

Undantag

bitmap är null.

Kommentarer

Anroparen ansvarar för att HBITMAPfrigöra . Om bilden använder transparens fylls bakgrunden med den angivna färgen.

Gäller för