Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the gamer picture associated with this profile.
Namespace: Microsoft.Xna.Framework.GamerServices
Assembly: Microsoft.Xna.Framework.GamerServices (in microsoft.xna.framework.gamerservices.dll)
Syntax
public Stream GetGamerPicture ()
Return Value
The gamer picture, as a stream.
Remarks
To convert the stream returned by this method into a Texture2D, use the FromStream member, as shown:
// Read the gamer picture.
Stream stream = profile.GetGamerPicture();
Texture2D picture = Texture2D.FromStream(deviceManager.GraphicsDevice, stream);
See Also
Reference
GamerProfile Class
GamerProfile Members
Microsoft.Xna.Framework.GamerServices Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP