ControlPaint.CreateHBitmapColorMask(Bitmap, IntPtr) 메서드

정의

이미지를 사용하여 Win32 HBITMAP을 만듭니다.

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

매개 변수

bitmap
Bitmap

만들 Bitmap입니다.

monochromeMask
IntPtr

nativeint

단색 마스크에 대한 포인터입니다.

반환

IntPtr

nativeint

비트맵에 대한 핸들입니다.

예외

bitmap가 null입니다.

설명

호출자는 .의 할당을 취소할 HBITMAP책임이 있습니다. 이미지가 투명도를 사용하는 경우 배경은 지정된 색으로 채워집니다.

적용 대상