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 CreateHBITMAPTransparencyMask( _ ByVal bitmap As Bitmap _ ) As Integer [C#] public static int CreateHBITMAPTransparencyMask( Bitmap bitmap ); [C++] public: static int CreateHBITMAPTransparencyMask( Bitmap* bitmap ); [JScript] public static function CreateHBITMAPTransparencyMask( bitmap : Bitmap ) : int;
ControlPaint Class | ControlPaint Members | System.WinForms Namespace