Export (0) Print
Expand All

MediaLibraryExtensions.GetPreviewImage Method

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

[ExtensionAttribute]
public static Stream GetPreviewImage (
         Picture picture
)

Parameters

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 microsoft.xna.framework.media.phoneextensions.dll)

Windows Phone

Community Additions

ADD
Show:
© 2014 Microsoft