Share via


Achievement.GetPicture Method

Gets the image associated with this achievement.

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

Syntax

public Stream GetPicture ()

Return Value

A stream containing the image data for this achievement.

Remarks

Warning

This class and all related methods and properties only retrieve a calculated result for titles approved to access Xbox LIVE Services through the Xbox LIVE Registered Developer Program. For Xbox LIVE Indie games, the properties in this class will not return a calculated result, and related methods will report a NotSupportedException.

Use FromStream to convert the stream to a Texture2D.

See Also

Reference

Achievement Class
Achievement Members
Microsoft.Xna.Framework.GamerServices Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP