ControlPaint.CreateHBitmap16Bit Method (Bitmap, Color)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a 16-bit color bitmap.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)>
Public Shared Function CreateHBitmap16Bit (
	bitmap As Bitmap,
	background As Color
) As IntPtr

Parameters

bitmap
Type: System.Drawing.Bitmap

The Bitmap to create.

background
Type: System.Drawing.Color

The Color of the background.

Return Value

Type: System.IntPtr

An IntPtr representing the handle to the bitmap.

.NET Framework
Available since 1.1
Return to top
Show: