Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
The GetBitmapBits function copies the bitmap bits of a specified device-dependent bitmap into a buffer.
Syntax
LONG GetBitmapBits(
[in] HBITMAP hbit,
[in] LONG cb,
[out] LPVOID lpvBits
);
Parameters
[in] hbit
A handle to the device-dependent bitmap.
[in] cb
The number of bytes to copy from the bitmap into the buffer.
[out] lpvBits
A pointer to a buffer to receive the bitmap bits. The bits are stored as an array of byte values.
Return value
If the function succeeds, the return value is the number of bytes copied to the buffer.
If the function fails, the return value is zero.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Target Platform | Windows |
| Header | wingdi.h (include Windows.h) |
| Library | Gdi32.lib |
| DLL | Gdi32.dll |