LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync
LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync
LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync
LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync
LineDisplayWindow.TryDisplayStorageFileBitmapAtCursorAsync
Method
Definition
Overloads
TryDisplayStorageFileBitmapAtCursorAsync(StorageFile) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile)
Attempts to asynchronously display a bitmap from a storage file at the current cursor position.
public : IAsyncOperation<Platform::Boolean> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap)
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap) const;
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap)
Public Function TryDisplayStorageFileBitmapAtCursorAsync(bitmap As StorageFile) As IAsyncOperation(Of bool)
Windows.Devices.PointOfService.LineDisplayWindow.tryDisplayStorageFileBitmapAtCursorAsync(bitmap).done( /* Your success and error handlers */ );
Parameters
- bitmap
- StorageFile StorageFile StorageFile
The bitmap to be displayed.
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.
TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)
Attempts to asynchronously display a bitmap from a storage file at the current cursor position.
public : IAsyncOperation<Platform::Boolean> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment)
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment) const;
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment)
Public Function TryDisplayStorageFileBitmapAtCursorAsync(bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment) As IAsyncOperation(Of bool)
Windows.Devices.PointOfService.LineDisplayWindow.tryDisplayStorageFileBitmapAtCursorAsync(bitmap, horizontalAlignment, verticalAlignment).done( /* Your success and error handlers */ );
Parameters
- bitmap
- StorageFile StorageFile StorageFile
The bitmap to be displayed.
- horizontalAlignment
- LineDisplayHorizontalAlignment LineDisplayHorizontalAlignment LineDisplayHorizontalAlignment
The horizontal alignment of the bitmap relative to the current text character position.
- verticalAlignment
- LineDisplayVerticalAlignment LineDisplayVerticalAlignment LineDisplayVerticalAlignment
The vertical alignment of the bitmap relative to the current text character position.
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.
TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32) TryDisplayStorageFileBitmapAtCursorAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)
Attempts to asynchronously display a bitmap from a storage file at the current cursor position, at a particular width.
public : IAsyncOperation<Platform::Boolean> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int widthInPixels)
IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int32_t widthInPixels) const;
public IAsyncOperation<bool> TryDisplayStorageFileBitmapAtCursorAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, Int32 widthInPixels)
Public Function TryDisplayStorageFileBitmapAtCursorAsync(bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment, widthInPixels As Int32) As IAsyncOperation(Of bool)
Windows.Devices.PointOfService.LineDisplayWindow.tryDisplayStorageFileBitmapAtCursorAsync(bitmap, horizontalAlignment, verticalAlignment, widthInPixels).done( /* Your success and error handlers */ );
Parameters
- bitmap
- StorageFile StorageFile StorageFile
The bitmap to be displayed.
- horizontalAlignment
- LineDisplayHorizontalAlignment LineDisplayHorizontalAlignment LineDisplayHorizontalAlignment
The horizontal alignment of the bitmap relative to the current text character position.
- verticalAlignment
- LineDisplayVerticalAlignment LineDisplayVerticalAlignment LineDisplayVerticalAlignment
The vertical alignment of the bitmap relative to the current text character position.
- 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.
Feedback
Loading feedback...