Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: CodecCount
*Next Topic: ConnectionSpeed

ColorKey Property

Sets or retrieves the color key being used by the DVD playback.

Syntax

MediaPlayer.DVD.ColorKey [ = uColorKey ]

Possible Values

uColorKey ULONG data type specifying the color key. Specify as a hexadecimal value in the form 0xRRGGBB for Microsoft® JScript® and &HRRGGBB for Microsoft Visual Basic® Scripting Edition (VBScript).

This property is read/write.

Remarks

The color key refers to the destination color key being used by the overlay surface.

Applications should set the color key to an obscure color (some color which, in all probability, will not be present on the desktop). Overlay mixer filters will typically use an obscure color, but if the application knows that the specified color is part of some other content, then the application should change it.

For example, using JScript you can set the color key as follows.

MediaPlayer1.DVD.ColorKey = 0xffffff;

For more information, see Overlay Mixer in the Microsoft DirectShow™ Software Development Kit.


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.