DrawingContext.DrawVideo Method (MediaPlayer, Rect, AnimationClock)
Draws a video into the specified region and applies the specified animation clock.
Assembly: PresentationCore (in PresentationCore.dll)
public abstract void DrawVideo( MediaPlayer player, Rect rectangle, AnimationClock rectangleAnimations )
The media to draw.
The area in which to draw the media.
Note that the media will be stretched to fit inside the area defined by the rectangle parameter. If rectangle and media have different aspect ratios, distortion will occur. For more control over how media is used to fill an area, use the DrawRectangle command to draw a rectangle and fill it with a VisualBrush that contains media.
Available since 3.0