次の方法で共有


VideoPlayer.GetTexture Method

Retrieves a Texture2D containing the current frame of video being played.

Namespace: Microsoft.Xna.Framework.Media
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public Texture2D GetTexture ()

Return Value

The current frame of video.

Remarks

Call GetTexture once per frame to get the latest video data.

Use SpriteBatch.Draw to display the video on the screen, or attach the texture to an object in 3D space to display the video as part of a scene.

See Also

Reference

VideoPlayer Class
VideoPlayer Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP