Share via


IDDrawExclModeVideoCallback::OnUpdateColorKey

 
Microsoft DirectShow 9.0

IDDrawExclModeVideoCallback::OnUpdateColorKey

The OnUpdateColorKey method informs the application that the color key has changed so that the application can use the new color key to overlay graphics on the video.

Syntax

  HRESULT OnUpdateColorKey (
  COLORKEY const *pKey,
  DWORD dwColor
);

Parameters

pKey

[out] Pointer to a COLORKEY structure that contains the key type and a palette index.

dwColor

[out] Value indicating the 8-bit palette index of the COLORKEY returned in pKey, if the current display mode is 8-bit palettized. Otherwise, it is a value representing the color key in the pixel format of the current display mode.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
S_OK Success.
E_INVALIDARG One of the parameters is invalid.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also