ThumbnailMode
ThumbnailMode
ThumbnailMode
ThumbnailMode
Enum
Definition
Describes the purpose of the thumbnail to determine how to adjust the thumbnail image to retrieve.
public : enum class ThumbnailModepublic enum ThumbnailModePublic Enum ThumbnailMode// You can use this enum in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Fields
| DocumentsView DocumentsView DocumentsView DocumentsView | To display previews of document files.
|
| ListView ListView ListView ListView | To display previews of files (or other items) in a list.
|
| MusicView MusicView MusicView MusicView | To display previews of music files.
|
| PicturesView PicturesView PicturesView PicturesView | To display previews of picture files.
|
| SingleItem SingleItem SingleItem SingleItem | To display a preview of any single item (like a file, folder, or file group).
|
| VideosView VideosView VideosView VideosView | To display previews of video files.
|
Remarks
Windows uses the default, preferred size as a guide to scale the thumbnail image without reducing the quality of the image. It does not guarantee the size of the thumbnail image that is retrieved.
Using thumbnail modes
Use this enumeration to determine the thumbnail image you get when you call one of the getThumbnailAsync methods. These methods return the thumbnail image as a storageItemThumbnail object.
For example, you can get a thumbnail image to preview a video file by calling storageFile.GetThumbnailAsync(ThumbnailMode) and specifying the videoView thumbnail mode.
To help you decide which mode you should use, see Guidelines and checklist for thumbnails.