网站首页  词典首页

请输入您要查询的函数:

 

术语 setdibcolortable
释义 SetDIBColorTable
语法:
UINT SetDIBColorTable(
__in HDC hdc,
__in UINT uStartIndex,
__in UINT cEntries,
__in const RGBQUAD *pColors
);
SetDIBColorTable功能
该SetDIBColorTable函数设置RGB(红,绿,蓝)在一个项目中的DIB的颜色表是目前到指定的设备范围内选定的颜色值。
参数
hdc [in]
设备上下文。一个DIB必须选择这个设备上下文。
uStartIndex [in]
从零开始的颜色表索引指定了第一台彩色表项来设置。
舜帝 [in]
在颜色表项数集。
pColors [in]
一个一个RGBQUAD载的DIB的颜色表中的新色彩信息结构数组的指针。
返回值
如果函数成功,返回值是颜色表项数的函数集。
如果函数失败,返回值是零。
备注
此函数应调用设置的DIB颜色表中,使用1,4,或8 bpp的。一个图的相关位图信息头结构BitCount成员。
BITMAPINFOHEADER结构指定位每像素数。设备与biBitCount值大于8个独立的位图没有颜色表。
一个位图的关联BITMAPV5HEADER结构bV5BitCount成员指定的位每像素数。设备与bV5BitCount值大于8个独立的位图没有颜色表。
ICM的:没有色彩管理是执行。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
位图概述
位图功能
位图信息
CreateDIBSection
GetDIBColorTable
GetObject
DIBSECTION
RGBQUAD
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetDIBColorTable Function
The SetDIBColorTable function sets RGB (red, green, blue) color values in a range of entries in the color table of the DIB that is currently selected into a specified device context.
Syntax
UINT SetDIBColorTable(
__in HDC hdc,
__in UINT uStartIndex,
__in UINT cEntries,
__in const RGBQUAD *pColors
);
Parameters
hdc [in]
A device context. A DIB must be selected into this device context.
uStartIndex [in]
A zero-based color table index that specifies the first color table entry to set.
cEntries [in]
The number of color table entries to set.
pColors [in]
A pointer to an array of RGBQUAD structures containing new color information for the DIB's color table.
Return Value
If the function succeeds, the return value is the number of color table entries that the function sets.
If the function fails, the return value is zero.
Remarks
This function should be called to set the color table for DIBs that use 1, 4, or 8 bpp. The BitCount member of a bitmap's associated bitmap information header structure.
BITMAPINFOHEADER structure specifies the number of bits-per-pixel. Device-independent bitmaps with a biBitCount value greater than 8 do not have a color table.
The bV5BitCount member of a bitmap's associated BITMAPV5HEADER structure specifies the number of bits-per-pixel. Device-independent bitmaps with a bV5BitCount value greater than 8 do not have a color table.
ICM: No color management is performed.
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
GetDIBColorTable
GetObject
DIBSECTION
RGBQUAD
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162972(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:25:38