Dela via


BitmapFrame.GetThumbnailAsync Method

Definition

Asynchronously returns a stream containing the thumbnail image.

public:
 virtual IAsyncOperation<ImageStream ^> ^ GetThumbnailAsync() = GetThumbnailAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ImageStream> GetThumbnailAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ImageStream> GetThumbnailAsync();
function getThumbnailAsync()
Public Function GetThumbnailAsync () As IAsyncOperation(Of ImageStream)

Returns

Object that manages the asynchronous retrieval of the thumbnail data.

Implements

Attributes

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.

Applies to