共用方式為


LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync 方法

定義

多載

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

嘗試在特定時間點從儲存體檔案非同步顯示點陣圖。

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32)

嘗試在特定時間點以非同步方式顯示儲存體檔案中的點陣圖,並調整為特定寬度。

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

嘗試在特定時間點從儲存體檔案非同步顯示點陣圖。

public:
 virtual IAsyncOperation<bool> ^ TryDisplayStorageFileBitmapAtPointAsync(StorageFile ^ bitmap, Point offsetInPixels) = TryDisplayStorageFileBitmapAtPointAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtPointAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile const& bitmap, Point const& offsetInPixels);
[Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtPointAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels);
function tryDisplayStorageFileBitmapAtPointAsync(bitmap, offsetInPixels)
Public Function TryDisplayStorageFileBitmapAtPointAsync (bitmap As StorageFile, offsetInPixels As Point) As IAsyncOperation(Of Boolean)

參數

bitmap
StorageFile

要顯示的點陣圖。

offsetInPixels
Point

要從螢幕左上角位移點陣圖顯示的圖元數目。 {0,0}

傳回

如果已成功顯示點陣圖,則傳回 True;否則為 False。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 LineDisplayCapabilities.CanDisplayBitmaps 值為 False,這個方法將會失敗。

適用於

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32)

嘗試在特定時間點以非同步方式顯示儲存體檔案中的點陣圖,並調整為特定寬度。

public:
 virtual IAsyncOperation<bool> ^ TryDisplayStorageFileBitmapAtPointAsync(StorageFile ^ bitmap, Point offsetInPixels, int widthInPixels) = TryDisplayStorageFileBitmapAtPointAsync;
/// [Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtPointWithWidthAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile const& bitmap, Point const& offsetInPixels, int const& widthInPixels);
[Windows.Foundation.Metadata.Overload("TryDisplayStorageFileBitmapAtPointWithWidthAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels, int widthInPixels);
function tryDisplayStorageFileBitmapAtPointAsync(bitmap, offsetInPixels, widthInPixels)
Public Function TryDisplayStorageFileBitmapAtPointAsync (bitmap As StorageFile, offsetInPixels As Point, widthInPixels As Integer) As IAsyncOperation(Of Boolean)

參數

bitmap
StorageFile

要顯示的點陣圖。

offsetInPixels
Point

要從螢幕左上角位移點陣圖顯示的圖元數目。 {0,0}

widthInPixels
Int32

int

所需的點陣圖寬度。 值為 0 圖元會在每個螢幕點顯示一個圖元的點陣圖, (未調整的) 。

傳回

如果已成功顯示點陣圖,則傳回 True;否則為 False。

屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

如果 LineDisplayCapabilities.CanDisplayBitmaps 值為 False,這個方法將會失敗。

如果提供的 widthInPixels 值大於 ClaimedLineDisplay.MaxBitmapSizeInPixels,這個方法將會失敗。

適用於