网站首页  计算机词典

请输入您要查询的字词:

 

字词 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
随便看

 

计算机英汉双解词典包含34412条计算机术语英汉翻译词条,基本涵盖了全部常用计算机术语的翻译及用法,是计算机学习及翻译工作的有利工具。

 

Copyright © 2021-2025 foosec.com All Rights Reserved
更新时间:2026/10/23 23:35:14