Condividi tramite


Album.GetThumbnail Method

Gets the album art thumbnail 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
    Content manager service provider, obtained through the Game.Services property.

Return Value

Texture with the album art thumbnail, or null if the album has no associated thumbnail.

See Also

Reference

Album.HasArt Property
Album.GetAlbumArt Method
Album Class
Album Members
Microsoft.Xna.Framework.Media Namespace

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune