网站首页  词典首页

请输入您要查询的函数:

 

术语 getdibcolortable
释义 GetDIBColorTable
语法:
UINT GetDIBColorTable(
__in HDC hdc,
__in UINT uStartIndex,
__in UINT cEntries,
__out RGBQUAD *pColors
);
GetDIBColorTable功能
该GetDIBColorTable函数检索RGB(红,绿,蓝)颜色值从参赛作品中的DIB的第位图目前到指定的设备上下文选择颜色表范围。
参数
hdc [in]
一个句柄,设备上下文。节的DIB位图,必须选择这个设备上下文。
uStartIndex [in]
从零开始的颜色表索引指定了第一台彩色表项检索。
舜帝 [in]
在颜色表项数检索。
pColors [out]
一个缓冲区接收数据的RGBQUAD载有DIB的颜色表中的颜色信息结构数组的指针。该缓冲区必须足够大,以包含多达RGBQUAD数据作为舜帝的价值结构。
返回值
如果函数成功,返回值是颜色表项数的函数检索。
如果函数失败,返回值是零。
备注
该GetDIBColorTable函数应该被调用以检索的DIB位图,使用的第1,4,或8 bpp颜色表。 BITMAPINFOHEADER结构的相关位图biBitCount成员指定的位每像素数。与biBitCount值大于8的DIB位图节没有颜色表,但他们有关联的彩色面具。调用GetObject函数来检索的彩色面具。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
位图信息
CreateDIBSection
DIBSECTION
GetObject
RGBQUAD
SetDIBColorTable
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetDIBColorTable Function
The GetDIBColorTable function retrieves RGB (red, green, blue) color values from a range of entries in the color table of the DIB section bitmap that is currently selected into a specified device context.
Syntax
UINT GetDIBColorTable(
__in HDC hdc,
__in UINT uStartIndex,
__in UINT cEntries,
__out RGBQUAD *pColors
);
Parameters
hdc [in]
A handle to a device context. A DIB section bitmap must be selected into this device context.
uStartIndex [in]
A zero-based color table index that specifies the first color table entry to retrieve.
cEntries [in]
The number of color table entries to retrieve.
pColors [out]
A pointer to a buffer that receives an array of RGBQUAD data structures containing color information from the DIB color table. The buffer must be large enough to contain as many RGBQUAD data structures as the value of cEntries.
Return Value
If the function succeeds, the return value is the number of color table entries that the function retrieves.
If the function fails, the return value is zero.
Remarks
The GetDIBColorTable function should be called to retrieve the color table for DIB section bitmaps that use 1, 4, or 8 bpp. The biBitCount member of a bitmap associated BITMAPINFOHEADER structure specifies the number of bits-per-pixel. DIB section bitmaps with a biBitCount value greater than eight do not have a color table, but they do have associated color masks. Call the GetObject function to retrieve those color masks.
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
BITMAPINFOHEADER
CreateDIBSection
DIBSECTION
GetObject
RGBQUAD
SetDIBColorTable
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144878(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 11:27:31