StorageFile.GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32) | getScaledImageAsThumbnailAsync(ThumbnailMode, UInt32) method
Gets a scaled image as a thumbnail, determined by the purpose of the thumbnail and the requested size.
public IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync( ThumbnailMode mode, uint requestedSize )
The enum value that describes the purpose of the thumbnail and determines how the thumbnail image is adjusted.
For guidance about choosing the best thumbnail mode, see Guidelines and checklist for thumbnails.
The requested size, in pixels, of the longest edge of the thumbnail. Windows uses the requestedSize as a guide and tries to scale the thumbnail image without reducing the quality of the image.
If Windows can't find a thumbnail image that it can scale to meet the requested size, a larger thumbnail might be returned. If no larger thumbnail is available, a thumbnail image that is smaller than the requested size might be returned.
When this method completes successfully, it returns a StorageItemThumbnail that represents the thumbnail image or null if there is no thumbnail image associated with the item.
Minimum supported client
Minimum supported server
|Windows Server 2012 R2|
- GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)
Build date: 11/16/2013