 |
GetDIBits ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetDIBits function retrieves the bits of the specified compatible bitmap and copies them into a buffer as a DIB using the specified format. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int GetDIBits(
HDC hdc, // handle to DC
HBITMAP hbmp, // handle to bitmap
UINT uStartScan, // first scan line to set
UINT cScanLines, // number of scan lines to copy
LPVOID lpvBits, // array for bitmap bits
LPBITMAPINFO lpbi, // bitmap data buffer
UINT uUsage // RGB or palette index
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetDIBits IN gdi32;
INTEGER hdc,;
INTEGER hbmp,;
INTEGER uStartScan,;
INTEGER cScanLines,;
INTEGER lpvBits,;
STRING @ lpbi,;
INTEGER uUsage
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the device context.
hbmp
[in] Handle to the bitmap. This must be a compatible bitmap (DDB).
uStartScan
[in] Specifies the first scan line to retrieve.
cScanLines
[in] Specifies the number of scan lines to retrieve.
lpvBits
[out] Pointer to a buffer to receive the bitmap data.
lpbi
[in/out] Pointer to a BITMAPINFO structure that specifies the desired format for the DIB data.
uUsage
[in] Specifies the format of the bmiColors member of the BITMAPINFO structure. |
 |
 |
| Return value: |
 |
| If the lpvBits parameter is non-NULL and the function succeeds, the return value is the number of scan lines copied from the bitmap. |
 |
 |
| My comment: |
 |
DDB = Device-Dependent Bitmap.
DIB = Device-Independent Bitmap: is not a GDI graphic object; cannot be selected into a device context; can be rendered to a device context directly. |
 |
 |
| Word Index links for the GetDIBits : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-11-05 20:56:27 | | Modified: | 2001-11-26 16:03:56 | Visited in last 7 days: 45 |