BitmapDecoder.GetThumbnailAsync BitmapDecoder.GetThumbnailAsync BitmapDecoder.GetThumbnailAsync BitmapDecoder.GetThumbnailAsync BitmapDecoder.GetThumbnailAsync Method

Definition

Asynchronously returns a stream containing the thumbnail image.

public : IAsyncOperation<ImageStream> GetThumbnailAsync()
IAsyncOperation<ImageStream> GetThumbnailAsync() const;
public IAsyncOperation<ImageStream> GetThumbnailAsync()
Public Function GetThumbnailAsync() As IAsyncOperation(Of ImageStream)
Windows.Graphics.Imaging.BitmapDecoder.getThumbnailAsync().done( /* Your success and error handlers */ );

Returns

Object that manages the asynchronous retrieval of the thumbnail stream.

The thumbnail data is returned in the form of an image stream. You can display it using an image control, or read and edit it using BitmapDecoder and BitmapEncoder

Remarks

Many image formats, like JPEG and TIFF, allow a small sized thumbnail of the full image to be embedded within a frame. If the image does not contain a thumbnail, then this operation will fail with HRESULT WINCODEC_ERR_CODECNOTHUMBNAIL. If it exists, the EXIF orientation flag on the frame is automatically applied to the thumbnail before it is returned.