术语 | creatediscardablebitmap |
释义 | CreateDiscardableBitmap 语法: HBITMAP CreateDiscardableBitmap( __in HDC hdc, __in int nWidth, __in int nHeight ); CreateDiscardableBitmap功能 该CreateDiscardableBitmap函数创建一个discardable位图与指定的设备兼容。位图拥有每像素格式和同样的设备相同的颜色调色板位。应用程序可以选择这个作为一个存储设备,是与指定的设备兼容当前的位图位图。 注意:此功能仅提供了兼容性与16位的Windows版本。应用程序应该使用CreateCompatibleBitmap功能。 参数 hdc [in] 一个句柄,设备上下文。 nWidth [in] 宽度,以像素位图。 nHeight [in] 的高度,以像素为单位的位图。 返回值 如果函数成功,返回值是一个句柄兼容位图(DDB)。 如果函数失败,返回值为NULL。 备注 当您不再需要的位图,调用DeleteObject函数将其删除。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWingdi.h(头文件:winuser.h) LibraryGdi32.lib DLLGdi32.dll 参见 位图概述 位图功能 CreateCompatibleBitmap DeleteObject 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==CreateDiscardableBitmap Function 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. Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the CreateCompatibleBitmap function. Syntax HBITMAP CreateDiscardableBitmap( __in HDC hdc, __in int nWidth, __in int nHeight ); Parameters hdc [in] A handle to a device context. nWidth [in] The width, in pixels, of the bitmap. nHeight [in] The height, in pixels, of the bitmap. Return Value If the function succeeds, the return value is a handle to the compatible bitmap (DDB). If the function fails, the return value is NULL. Remarks When you no longer need the bitmap, call the DeleteObject function to delete it. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWingdi.h (include Windows.h) LibraryGdi32.lib DLLGdi32.dll See Also Bitmaps Overview Bitmap Functions CreateCompatibleBitmap DeleteObject Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183495(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。