IVideoWindow::put_BackgroundPalette method (control.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The put_BackgroundPalette
method specifies whether the video window realizes its palette in the background.
Syntax
HRESULT put_BackgroundPalette(
[in] long BackgroundPalette
);
Parameters
[in] BackgroundPalette
Specifies whether the video renderer realizes it palette in the background. Must be one of the following values:
Value | Description |
---|---|
OATRUE | The video renderer realizes the palette in the background. |
OAFALSE | The video renderer does not realize the palette in the background. (Default.) |
Return value
Possible return values include the following:
Return code | Description |
---|---|
|
Invalid argument. |
|
Success. |
|
The video renderer filter is not connected. |
Remarks
If BackgroundPalette is OATRUE and the video image requires a palette, the video renderer will realize that palette in the background. Any colors that the palette uses will change to their closest match in the display palette prior to drawing. This ensures that an application will not have its palette disturbed. However, it imposes severe performance penalties on the video.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | control.h (include Dshow.h) |
Library | Strmiids.lib |