ClaimedLineDisplay.TryStoreStorageFileBitmapAsync 方法

定义

重载

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryStoreStorageFileBitmapAsync(StorageFile)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

public:
 virtual IAsyncOperation<LineDisplayStoredBitmap ^> ^ TryStoreStorageFileBitmapAsync(StorageFile ^ bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment) = TryStoreStorageFileBitmapAsync;
/// [Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapWithAlignmentAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile const& bitmap, LineDisplayHorizontalAlignment const& horizontalAlignment, LineDisplayVerticalAlignment const& verticalAlignment);
[Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapWithAlignmentAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment);
function tryStoreStorageFileBitmapAsync(bitmap, horizontalAlignment, verticalAlignment)
Public Function TryStoreStorageFileBitmapAsync (bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment) As IAsyncOperation(Of LineDisplayStoredBitmap)

参数

bitmap
StorageFile

表示本地位图文件的 StorageFile 。 所有行显示器都支持黑白未压缩的 Windows 位图。 检查设备规格,了解其他支持的格式。

horizontalAlignment
LineDisplayHorizontalAlignment

确定位图相对于其原始字符单元格的水平对齐方式。

verticalAlignment
LineDisplayVerticalAlignment

确定位图相对于其原始字符单元格的垂直对齐方式。

返回

如果成功存储位图,则为 True;如果发生故障,则为 False。

属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

另请参阅

适用于

TryStoreStorageFileBitmapAsync(StorageFile, LineDisplayHorizontalAlignment, LineDisplayVerticalAlignment, Int32)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

public:
 virtual IAsyncOperation<LineDisplayStoredBitmap ^> ^ TryStoreStorageFileBitmapAsync(StorageFile ^ bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int widthInPixels) = TryStoreStorageFileBitmapAsync;
/// [Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapWithAlignmentAndWidthAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile const& bitmap, LineDisplayHorizontalAlignment const& horizontalAlignment, LineDisplayVerticalAlignment const& verticalAlignment, int const& widthInPixels);
[Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapWithAlignmentAndWidthAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile bitmap, LineDisplayHorizontalAlignment horizontalAlignment, LineDisplayVerticalAlignment verticalAlignment, int widthInPixels);
function tryStoreStorageFileBitmapAsync(bitmap, horizontalAlignment, verticalAlignment, widthInPixels)
Public Function TryStoreStorageFileBitmapAsync (bitmap As StorageFile, horizontalAlignment As LineDisplayHorizontalAlignment, verticalAlignment As LineDisplayVerticalAlignment, widthInPixels As Integer) As IAsyncOperation(Of LineDisplayStoredBitmap)

参数

bitmap
StorageFile

表示本地位图文件的 StorageFile 。 所有行显示器都支持黑白未压缩的 Windows 位图。 检查设备规格,了解其他支持的格式。

horizontalAlignment
LineDisplayHorizontalAlignment

确定位图相对于其原始字符单元格的水平对齐方式。

verticalAlignment
LineDisplayVerticalAlignment

确定位图相对于其原始字符单元格的垂直对齐方式。

widthInPixels
Int32

int

显示的位图宽度(以像素为单位),如果与原始位图宽度不同。 高度将按比例计算。

返回

如果成功存储位图,则为 True;如果发生故障,则为 False。

属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

另请参阅

适用于

TryStoreStorageFileBitmapAsync(StorageFile)

尝试从 StorageFile 异步存储位图图像,以便以后在行显示设备上显示。

public:
 virtual IAsyncOperation<LineDisplayStoredBitmap ^> ^ TryStoreStorageFileBitmapAsync(StorageFile ^ bitmap) = TryStoreStorageFileBitmapAsync;
/// [Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile const& bitmap);
[Windows.Foundation.Metadata.Overload("TryStoreStorageFileBitmapAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<LineDisplayStoredBitmap> TryStoreStorageFileBitmapAsync(StorageFile bitmap);
function tryStoreStorageFileBitmapAsync(bitmap)
Public Function TryStoreStorageFileBitmapAsync (bitmap As StorageFile) As IAsyncOperation(Of LineDisplayStoredBitmap)

参数

bitmap
StorageFile

表示本地位图文件的 StorageFile 。 所有行显示器都支持黑白未压缩的 Windows 位图。 检查设备规格,了解其他支持的格式。

返回

如果成功存储位图,则为 True;如果发生故障,则为 False。

属性

Windows 要求

设备系列
Windows 10 Fall Creators Update (在 10.0.16299.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v5.0 中引入)

注解

另请参阅

适用于