StorageFile.GetThumbnailAsync | getThumbnailAsync Methods

依據縮圖的用途,擷取檔案經過調整的縮圖影像。

超載清單

方法說明
GetThumbnailAsync(ThumbnailMode) Retrieves an adjusted thumbnail image for the file, determined by the purpose of the thumbnail.
GetThumbnailAsync(ThumbnailMode, UInt32) Retrieves an adjusted thumbnail image for the file, determined by the purpose of the thumbnail and the requested size.
GetThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions) Retrieves an adjusted thumbnail image for the file, determined by the purpose of the thumbnail, the requested size, and the specified options.

備註

如需選擇最佳縮圖模式的相關指引,請參閱縮圖的指導方針和檢查清單

Windows Phone 8

這個應用程式開發介面不會實作,而且如果呼叫的話,會擲回例外狀況。請參閱 Windows Phone 執行階段 API

需求

最低支援的用戶端

Windows 8

最低支援的伺服器

Windows Server 2012

最低支援的電話

Windows Phone 8 [未實作,請見備註]

命名空間

Windows.Storage
Windows::Storage [C++]

中繼資料

Windows.winmd

另請參閱

StorageFile
ThumbnailMode
ThumbnailOptions

 

 

顯示:
© 2014 Microsoft