Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

PictureCollection.Item Property

Gets the Picture at the specified index in the PictureCollection.

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

public Picture this [
         int index
] { get; }

Property Value

A new Picture representing the picture at the specified index in this PictureCollection.

Each call returns a new Picture instance.

Picture resources such as the picture texture and thumbnail are cached in each Picture instance. Retrieving and maintaining references to multiple instances of the same picture, and then accessing the picture texture or thumbnail on each of those instances, creates multiple copies of the texture or thumbnail.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.