网站首页  词典首页

请输入您要查询的函数:

 

术语 setbitmapbits
释义 SetBitmapBits
语法:
LONG SetBitmapBits(
__in HBITMAP hbmp,
__in DWORD cBytes,
__in const VOID *lpBits
);
SetBitmapBits功能
该SetBitmapBits函数设置为指定的值位图的颜色数据位。
注意:此功能仅提供了兼容性与16位的Windows版本。 Applications should use the SetDIBits function.
参数
骨形成蛋白 [in]
阿位图句柄要设置。这必须是一个兼容的位图(DDB)。
cBytes [in]
的字节数指向的lpBits参数。
lpBits [in]
对一个字节,其中包含指定的位图的颜色数据数组的指针。
返回值
如果函数成功,返回值是在设置位图位使用的字节数。
如果函数失败,返回值是零。
备注
由lpBits确定的数组必须字对齐。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
GetBitmapBits
SetDIBits
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetBitmapBits Function
The SetBitmapBits function sets the bits of color data for a bitmap to the specified values.
Note This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the SetDIBits function.
Syntax
LONG SetBitmapBits(
__in HBITMAP hbmp,
__in DWORD cBytes,
__in const VOID *lpBits
);
Parameters
hbmp [in]
A handle to the bitmap to be set. This must be a compatible bitmap (DDB).
cBytes [in]
The number of bytes pointed to by the lpBits parameter.
lpBits [in]
A pointer to an array of bytes that contain color data for the specified bitmap.
Return Value
If the function succeeds, the return value is the number of bytes used in setting the bitmap bits.
If the function fails, the return value is zero.
Remarks
The array identified by lpBits must be WORD aligned.
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
GetBitmapBits
SetDIBits
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162962(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:18:33