Share via


Picture.GetThumbnail Method

Gets a thumbnail of the picture as a texture.

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

Syntax

public Texture2D GetThumbnail (
         IServiceProvider serviceProvider
)

Parameters

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

Return Value

Texture with a thumbnail of the picture's graphical content.

Remarks

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

See Also

Reference

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

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune