The CreateDiscardableBitmap function creates a discardable bitmap that is compatible with the specified device. The bitmap has the same bits-per-pixel format and the same color palette as the device. An application can select this bitmap as the current bitmap for a memory device that is compatible with the specified device.
The CreateDiscardableBitmap function is included only for compatibility with earlier versions of Windows. For Win32-based applications, use the CreateCompatibleBitmap function.
HBITMAP CreateDiscardableBitmap(
HDC hdc, |
// handle to device context |
int nWidth, |
// bitmap width |
int nHeight |
// bitmap height |
); |
If the function succeeds, the return value is a handle to the bitmap.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
When you no longer need the bitmap, call the DeleteObject function to delete it.
CreateCompatibleBitmap, DeleteObject
file: /Techref/os/win/api/win32/func/src/f09_4.htm, 2KB, , updated: 2000/4/7 11:19, local time: 2024/11/23 06:45,
18.117.188.105:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://sxlist.com/techref/os/win/api/win32/func/src/f09_4.htm"> CreateDiscardableBitmap</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.