Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.36 KB

linedisplaywindow_trydisplaystoragefilebitmapatpointasync_1816627683.md

File metadata and controls

36 lines (24 loc) · 1.36 KB
-api-id -api-type
M:Windows.Devices.PointOfService.LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync(Windows.Storage.StorageFile,Windows.Foundation.Point,System.Int32)
winrt method

Windows.Devices.PointOfService.LineDisplayWindow.TryDisplayStorageFileBitmapAtPointAsync

-description

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

-parameters

-param bitmap

The bitmap to be displayed.

-param offsetInPixels

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

-param widthInPixels

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.

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

-see-also

-examples