ControlPaint::CreateHBitmapColorMask Method (Bitmap^, IntPtr)
.NET Framework (current version)
Creates a Win32 HBITMAP out of the image.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] static IntPtr CreateHBitmapColorMask( Bitmap^ bitmap, IntPtr monochromeMask )
Parameters
- bitmap
-
Type:
System.Drawing::Bitmap^
The Bitmap to create.
- monochromeMask
-
Type:
System::IntPtr
A pointer to the monochrome mask.
You are responsible for de-allocating the HBITMAP. If the image uses transparency, the background will be filled with the specified color.
.NET Framework
Available since 1.1
Available since 1.1
Show: