MediaOverlayLayer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
MediaOverlayLayer() |
Initializes a new instance of the MediaOverlayLayer class. |
MediaOverlayLayer(IVideoCompositorDefinition) |
Initializes a new instance of the MediaOverlayLayer class. |
MediaOverlayLayer()
Initializes a new instance of the MediaOverlayLayer class.
public:
MediaOverlayLayer();
MediaOverlayLayer();
public MediaOverlayLayer();
function MediaOverlayLayer()
Public Sub New ()
See also
Applies to
MediaOverlayLayer(IVideoCompositorDefinition)
Initializes a new instance of the MediaOverlayLayer class.
public:
MediaOverlayLayer(IVideoCompositorDefinition ^ compositorDefinition);
MediaOverlayLayer(IVideoCompositorDefinition const& compositorDefinition);
public MediaOverlayLayer(IVideoCompositorDefinition compositorDefinition);
function MediaOverlayLayer(compositorDefinition)
Public Sub New (compositorDefinition As IVideoCompositorDefinition)
Parameters
- compositorDefinition
- IVideoCompositorDefinition
The definition of the custom compositor associated with the media overlay layer. This is typically an instance of the [VideoCompositorDefinition] class.
Examples
var propertySet = new PropertySet { ["Feather"] = true, ["Tolerance"] = 0.2f, ["Color"] = Colors.Blue };
// the name of a sealed class in a Windows Runtime Component project that implements
// the IVideoCompositor interface.
var className = "Effects.ChromaKeyVideoCompositor";
var compositorDefinition = new VideoCompositorDefinition(className, propertySet);
var layer = new MediaOverlayLayer(compositorDefinition);'