NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ControlPaint.CreateHBITMAPColorMask

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;

Parameters

bitmap
[To be supplied.]
monochromeMask
[To be supplied.]

See Also

ControlPaint Class | ControlPaint Members | System.WinForms Namespace