Creates a Win32 HBITMAP out of the image. You are responsible for de-allocating the HBITMAP with Windows.DeleteObject(handle). If the image uses transparency, the background will be filled with the specified color.
[Visual Basic] Public Shared Function CreateHBITMAPColorMask( _ ByVal bitmap As Bitmap, _ ByVal monochromeMask As Integer _ ) As Integer [C#] public static int CreateHBITMAPColorMask( Bitmap bitmap, int monochromeMask ); [C++] public: static int CreateHBITMAPColorMask( Bitmap* bitmap, int monochromeMask ); [JScript] public static function CreateHBITMAPColorMask( bitmap : Bitmap, monochromeMask : int ) : int;
ControlPaint Class | ControlPaint Members | System.WinForms Namespace