 |
CreateCompatibleBitmap Add comment W32 Constants Translate this page |
 |
 |
|
Creates a bitmap compatible with the device that is associated with the specified device context. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HBITMAP CreateCompatibleBitmap(
HDC hdc, // handle to DC
int nWidth, // width of bitmap, in pixels
int nHeight // height of bitmap, in pixels
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER CreateCompatibleBitmap IN gdi32;
INTEGER hdc,;
INTEGER nWidth,;
INTEGER nHeight
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to a device context.
nWidth
[in] Specifies the bitmap width, in pixels.
nHeight
[in] Specifies the bitmap height, in pixels. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is a handle to the bitmap. |
 |
 |
| Usage: |
 |
hBitmap = CreateCompatibleBitmap(m.hBaseDC,;
m.bmpwidth, m.bmpheight)
* select created bitmap in the device context
= SelectObject(m.hDC, m.hBitmap)
|
 |
 |
| My comment: |
 |
| When created the bitmap can be placed on a device context using SelectObject function. When you no longer need the bitmap, call the DeleteObject function to delete it. |
 |
 |
| Word Index links for the CreateCompatibleBitmap : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-07-31 12:00:00 | | Modified: | 2007-06-13 16:09:10 | Visited in last 7 days: 77 |