Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than gdi32, prefix the name with the module name and a period.
<DllImport("gdi32.dll")> _
Public Shared Function CreateDIBitmap( _
ByVal hdc As IntPtr, _
ByRef lpbmih As BITMAPINFOHEADER, _
ByVal fdwInit As UInteger, _
ByVal lpbInit As Byte(), _
ByRef lpbmi As BITMAPINFO, _
ByVal fuUsage As UInteger) _
As IntPtr
If you call this and then exit the function, automatic garbage collection does not work and you get a memory leak. You will need the DeleteObject function (also in gdi32) to free the memory manually
Notes:
None.
Sample Code:
Please add some!
Tips & Tricks:
If you call this and then exit the function, automatic garbage collection does not work and you get a memory leak. You will need the DeleteObject function (also in gdi32) to free the memory manually
Alternative Managed API:
Do you know one? Please contribute it!
Sample Code:
Please add some!
Alternative Managed API:
Do you know one? Please contribute it!
gfhjfgh
The CreateDIBitmap API
7/15/2014 12:48:39 PM - -86.30.250.21
BITMAPINFOHEADER
10/21/2013 7:05:34 PM - Seri-109.90.29.109
Defines the dimensions and color information for a DIB.
2/5/2022 11:09:27 AM - 82.69.113.219
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
7/18/2014 7:35:23 PM - Seri-109.90.29.109
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid.
7/18/2014 7:35:23 PM - Seri-109.90.29.109
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).