System.Windows.Forms.ControlPaint.CreateHBitmapTransparencyMask Method

Creates a color mask for the specified bitmap that indicates which color should be displayed as transparent.

Syntax

public static IntPtr CreateHBitmapTransparencyMask (System.Drawing.Bitmap bitmap)

Parameters

bitmap
The System.Drawing.Bitmap to create the transparency mask for.

Returns

The handle to the System.Drawing.Bitmap mask.

Remarks

You are responsible for de-allocating the bitmap.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0