Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MediaLibraryExtensions.GetPreviewImage Method

Gets a thumbnail image of the specified Picture that has the same dimensions as the phone's screen.

static Stream GetPreviewImage(
         Picture picture


Type: Picture
The picture for which a screen-sized thumbnail image Stream is returned.

Return Value

Type: Stream
The requested screen-sized thumbnail image.

For each picture saved on the phone, the following two thumbnail images are automatically created and can be retrieved by your apps.

  • A small thumbnail image. You can retrieve this thumbnail with the GetThumbnail method of the Picture class.
  • A preview image that has the same dimensions as the phone's screen. You can retrieve this preview image with the GetPreviewImage extension method of the Picture class.

Namespace: Microsoft.Xna.Framework.Media.PhoneExtensions
Assembly: Microsoft.Xna.Framework.Media.PhoneExtensions (in

Windows Phone

Community Additions

© 2017 Microsoft