ControlPaint::CreateHBitmap16Bit Method (Bitmap^, Color)

 

Creates a 16-bit color bitmap.

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

public:
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)]
static IntPtr CreateHBitmap16Bit(
	Bitmap^ bitmap,
	Color background
)

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: