LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync Method

Definition

Overloads

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

Attempts to asynchronously display a bitmap from a storage file at a particular point.

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32)

Attempts to asynchronously display a bitmap from a storage file at a particular point, scaled to a particular width.

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

Attempts to asynchronously display a bitmap from a storage file at a particular 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)

Parameters

bitmap
StorageFile

The bitmap to be displayed.

offsetInPixels
Point

The number of pixels to offset the bitmap display from the top-left corner of the screen, {0,0}.

Returns

Return True if the bitmap was successfully displayed; otherwise, False.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

If the LineDisplayCapabilities.CanDisplayBitmaps value is False, this method will fail.

Applies to

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32)

Attempts to asynchronously display a bitmap from a storage file at a particular point, scaled to a particular width.

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)

Parameters

bitmap
StorageFile

The bitmap to be displayed.

offsetInPixels
Point

The number of pixels to offset the bitmap display from the top-left corner of the screen, {0,0}.

widthInPixels
Int32

int

The desired width of the bitmap. A value of 0 pixels will display the bitmap at one pixel per screen dot (unscaled).

Returns

Return True if the bitmap was successfully displayed; otherwise, False.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

If the LineDisplayCapabilities.CanDisplayBitmaps value is False, this method will fail.

If the provided widthInPixels value is larger than ClaimedLineDisplay.MaxBitmapSizeInPixels, this method will fail.

Applies to