Video.RenderToTexture(Device) Method (Microsoft.DirectX.AudioVideoPlayback)

Enables the Video to trigger the TextureReadyToRender event to generate Texture objects for rendering video in Microsoft Direct3D.

Definition

Visual Basic Public Sub RenderToTexture( _
    ByVal graphicsDevice As Device _
)
C# public void RenderToTexture(
    Device graphicsDevice
);
C++ public:
void RenderToTexture(
    DevicegraphicsDevice
);
JScript public function RenderToTexture(
    graphicsDevice : Device
);

Parameters

graphicsDevice Microsoft.DirectX.Direct3D.Device
The parent Direct3D.Device that renders the video textures.

Remarks

When rendering a video in Direct3D using this method, be sure to hook the TextureReadyToRender event to retrieve the Texture objects.