次の方法で共有


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 ピクセルの値を指定すると、画面ドットごとに 1 ピクセル (スケールなし) でビットマップが表示されます。

戻り値

ビットマップが正常に表示された場合は 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 より大きい場合、このメソッドは失敗します。

適用対象