Picture.GetTexture Method

Gets the picture as a texture.

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

public Texture2D GetTexture (
         IServiceProvider serviceProvider
)

Parameters

serviceProvider
Game service provider, obtained from the Game.Services property.

Return Value

Texture with the graphical content of the picture.

GameServiceContainer Class implements IServiceProvider, so you can pass the value of the Game.Services property as the serviceProvider parameter.

Xbox 360, Windows XP SP2, Windows Vista, Zune

Community Additions

ADD
Show: