ControlPaint::CreateHBitmapTransparencyMask Method (Bitmap^)
.NET Framework (current version)
Creates a color mask for the specified bitmap that indicates which color should be displayed as transparent.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] static IntPtr CreateHBitmapTransparencyMask( Bitmap^ bitmap )
Parameters
- bitmap
-
Type:
System.Drawing::Bitmap^
The Bitmap to create the transparency mask for.
You are responsible for de-allocating the bitmap.
.NET Framework
Available since 1.1
Available since 1.1
Show: