您的位置:首页 > 其它

CImagePalette.MakePalette method

2013-12-05 09:40 344 查看


CImagePalette.MakePalette method

The
MakePalette
method creates a logical palette from the color table in a video format. 从视频格式的颜色表中创建一个逻辑调色板。


Syntax

C++

HPALETTE MakePalette(
const VIDEOINFOHEADER *pVideoInfo,
LPSTR szDevice
);



Parameters

pVideoInfo

Pointer to a VIDEOINFOHEADER structure that contains the color table. 视频信息头指针,
szDevice

Pointer to a string that contains the name of the display device, as returned by the GDI EnumDisplayDevices function. To use the main display device, set this parameter to NULL. 字符串指针。这个字符串是显示设备的名字。


Return value

If successful, returns a handle to the palette. Otherwise, returns NULL. 成功,返回调色板的句柄,否则返回0.


Requirements

Header
Winutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);Strmbasd.lib (debug builds)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: