StorageFolder.GetScaledImageAsThumbnailAsync 方法

定義

多載

GetScaledImageAsThumbnailAsync(ThumbnailMode)

取得縮放影像做為縮圖,由縮圖的用途決定。

GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32)

取得縮放影像做為縮圖,取決於縮圖的用途和要求的大小。

GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)

取得縮放影像做為縮圖,由縮圖的用途、要求的大小和指定的選項所決定

GetScaledImageAsThumbnailAsync(ThumbnailMode)

取得縮放影像做為縮圖,由縮圖的用途決定。

public:
 virtual IAsyncOperation<StorageItemThumbnail ^> ^ GetScaledImageAsThumbnailAsync(ThumbnailMode mode) = GetScaledImageAsThumbnailAsync;
/// [Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode const& mode);
[Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsyncOverloadDefaultSizeDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode mode);
function getScaledImageAsThumbnailAsync(mode)
Public Function GetScaledImageAsThumbnailAsync (mode As ThumbnailMode) As IAsyncOperation(Of StorageItemThumbnail)

參數

mode
ThumbnailMode

描述縮圖用途的列舉值,並決定縮圖影像的調整方式。

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

傳回

當此方法成功完成時,它會傳回代表縮圖影像的 StorageItemThumbnail ,如果沒有與專案相關聯的縮圖影像,則傳回 null

實作

屬性

另請參閱

適用於

GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32)

取得縮放影像做為縮圖,取決於縮圖的用途和要求的大小。

public:
 virtual IAsyncOperation<StorageItemThumbnail ^> ^ GetScaledImageAsThumbnailAsync(ThumbnailMode mode, unsigned int requestedSize) = GetScaledImageAsThumbnailAsync;
/// [Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsyncOverloadDefaultOptions")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode const& mode, uint32_t const& requestedSize);
[Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsyncOverloadDefaultOptions")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode mode, uint requestedSize);
function getScaledImageAsThumbnailAsync(mode, requestedSize)
Public Function GetScaledImageAsThumbnailAsync (mode As ThumbnailMode, requestedSize As UInteger) As IAsyncOperation(Of StorageItemThumbnail)

參數

mode
ThumbnailMode

描述縮圖用途的列舉值,並決定縮圖影像的調整方式。

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

requestedSize
UInt32

unsigned int

uint32_t

要求的大小,以圖元為單位,為縮圖最長邊緣。 Windows 會使用 requestedSize 作為指南,並嘗試調整縮圖影像,而不會降低影像的品質。

如果 Windows 找不到可調整以符合要求大小的縮圖影像,可能會傳回較大的縮圖。 如果沒有較大的縮圖可用,可能會傳回小於要求大小的縮圖影像。

傳回

當此方法成功完成時,它會傳回代表縮圖影像的 StorageItemThumbnail ,如果沒有與專案相關聯的縮圖影像,則傳回 null

實作

M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,System.UInt32) M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,unsigned int) M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,uint32_t)
屬性

另請參閱

適用於

GetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)

取得縮放影像做為縮圖,由縮圖的用途、要求的大小和指定的選項所決定

public:
 virtual IAsyncOperation<StorageItemThumbnail ^> ^ GetScaledImageAsThumbnailAsync(ThumbnailMode mode, unsigned int requestedSize, ThumbnailOptions options) = GetScaledImageAsThumbnailAsync;
/// [Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode const& mode, uint32_t const& requestedSize, ThumbnailOptions const& options);
[Windows.Foundation.Metadata.Overload("GetScaledImageAsThumbnailAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StorageItemThumbnail> GetScaledImageAsThumbnailAsync(ThumbnailMode mode, uint requestedSize, ThumbnailOptions options);
function getScaledImageAsThumbnailAsync(mode, requestedSize, options)
Public Function GetScaledImageAsThumbnailAsync (mode As ThumbnailMode, requestedSize As UInteger, options As ThumbnailOptions) As IAsyncOperation(Of StorageItemThumbnail)

參數

mode
ThumbnailMode

描述縮圖用途的列舉值,並決定縮圖影像的調整方式。

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

requestedSize
UInt32

unsigned int

uint32_t

要求的大小,以圖元為單位,為縮圖最長邊緣。 Windows 會使用 requestedSize 作為指南,並嘗試調整縮圖影像,而不會降低影像的品質。

如果 Windows 找不到可調整以符合要求大小的縮圖影像,可能會傳回較大的縮圖。 如果沒有較大的縮圖可用,可能會傳回小於要求大小的縮圖影像。

options
ThumbnailOptions

列舉值,描述用來擷取縮圖影像所需的行為。 指定的行為可能會影響影像的大小和/或品質,以及擷取縮圖影像的速度。

傳回

當此方法成功完成時,它會傳回代表縮圖影像的 StorageItemThumbnail ,如果沒有與專案相關聯的縮圖影像,則傳回 null

實作

M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,System.UInt32,Windows.Storage.FileProperties.ThumbnailOptions) M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,unsigned int,Windows.Storage.FileProperties.ThumbnailOptions) M:Windows.Storage.IStorageItemProperties2.GetScaledImageAsThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode,uint32_t,Windows.Storage.FileProperties.ThumbnailOptions)
屬性

另請參閱

適用於