CreateBitmap The CreateBitmap function creates a bitmap with the specified width, height, and color format (color planes and bits per pixel). VB4-32,5,6 Declare Function CreateBitmap Lib "gdi32" Alias "CreateBitmap" (ByVal nWidth As Long, ByVal nHeight As Long, ByVal nPlanes As Long, ByVal nBitCount As Long, lpBits As Any) As Long |
VB.NET System.Drawing.Bitmap |
Operating Systems Supported |
Requires Windows NT 3.1 or later; Requires Windows 95 or later |
· nWidth Specifies the bitmap width, in pixels.
· nHeight Specifies the bitmap height, in pixels.
· cPlanes Specifies the number of color planes used by the device.
· cBitsPerPel Specifies the number of bits required to identify the color of a single pixel.
· lpvBits Points to an array of color data used to set the colors in a rectangle of pixels. Each scan line in the rectangle must be word aligned (scan lines that are not word aligned must be padded with zeros). If this parameter is NULL, the new bitmap is undefined. |
If the function succeeds, the return value is a handle to a bitmap.
If the function fails, the return value is NULL. |
|