LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync Method

Definition

Overloads

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

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

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) 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) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point)

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

public : IAsyncOperation<Platform::Boolean> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels)
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels) const;
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels)
Public Function TryDisplayStorageFileBitmapAtPointAsync(bitmap As StorageFile, offsetInPixels As Point) As IAsyncOperation(Of bool)
Windows.Devices.PointOfService.LineDisplayWindow.tryDisplayStorageFileBitmapAtPointAsync(bitmap, offsetInPixels).done( /* Your success and error handlers */ );

Parameters

bitmap
StorageFile StorageFile StorageFile

The bitmap to be displayed.

offsetInPixels
Point Point 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.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

Remarks

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

TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32) TryDisplayStorageFileBitmapAtPointAsync(StorageFile, Point, Int32)

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

public : IAsyncOperation<Platform::Boolean> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels, int widthInPixels)
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels, int32_t widthInPixels) const;
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtPointAsync(StorageFile bitmap, Point offsetInPixels, Int32 widthInPixels)
Public Function TryDisplayStorageFileBitmapAtPointAsync(bitmap As StorageFile, offsetInPixels As Point, widthInPixels As Int32) As IAsyncOperation(Of bool)
Windows.Devices.PointOfService.LineDisplayWindow.tryDisplayStorageFileBitmapAtPointAsync(bitmap, offsetInPixels, widthInPixels).done( /* Your success and error handlers */ );

Parameters

bitmap
StorageFile StorageFile StorageFile

The bitmap to be displayed.

offsetInPixels
Point Point Point

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

widthInPixels
Int32 Int32 Int32

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.

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)

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.