Share via


Picture.GetTexture Method

Gets the picture as a texture.

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

Syntax

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.

Remarks

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

See Also

Reference

Picture.GetThumbnail Method
Picture Class
Picture Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune