..msdn Add comment W32 Constants Translate this page
Creates a DIB that applications can write to directly.|
__in HDC hdc,
__in const BITMAPINFO *pbmi,
__in UINT iUsage,
__out VOID **ppvBits,
__in HANDLE hSection,
__in DWORD dwOffset
DECLARE INTEGER CreateDIBSection IN gdi32;
|hdc [in] |
A handle to a device context. If the value of iUsage is DIB_PAL_COLORS, the function uses this device context"s logical palette to initialize the DIB colors.
A pointer to a BITMAPINFO structure that specifies various attributes of the DIB, including the bitmap dimensions and colors.
The type of data contained in the bmiColors array member of the BITMAPINFO structure pointed to by pbmi (either logical palette indexes or literal RGB values).
A pointer to a variable that receives a pointer to the location of the DIB bit values.
A handle to a file-mapping object that the function will use to create the DIB. This parameter can be NULL.
The offset from the beginning of the file-mapping object referenced by hSection where storage for the bitmap bit values is to begin. This value is ignored if hSection is NULL.
|If the function succeeds, the return value is a handle to the newly created DIB, and *ppvBits points to the bitmap bit values.|
If the function fails, the return value is NULL, and *ppvBits is NULL.
num2dword(nBitmapWidth) + num2dword(nBitmapHeight) +;
num2word(1) + num2word(nBitsPerPixel) +;
DIB_RGB_COLORS, @ppvBits, 0, 0)
|If hSection is NULL, the system allocates memory for the DIB. The system closes the handle to that memory when you later delete the DIB by calling the DeleteObject function.|
|Word Index links for the CreateDIBSection :|
|Translate this page:|
Visited in last 7 days: 55
|Created: ||2009-11-06 17:36:18|
|Modified: ||2009-11-06 17:41:17|
Copyright © 2001-2017
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.37), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.