CreateBitmap (gdi32)
Last changed: -202.68.153.97

.
Summary
Creates a bitmap.

C# Signature:

[DllImport("gdi32.dll")]
static extern IntPtr CreateBitmap(int nWidth, int nHeight, uint cPlanes, uint cBitsPerPel, IntPtr lpvBits);

VB.NET Signature:

<DllImport("gdi32.dll")> _
Private Shared Function CreateBitmap(nWidth As Integer, nHeight As Integer, cPlanes As UInteger, cBitsPerPel As UInteger, lpvBits As IntPtr) As IntPtr
End Function

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

The System.Drawing.Bitmap constructor, although it creates a DIB rather than a DDB.

Documentation