Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.05 KB

datapackage_setbitmap_1002521000.md

File metadata and controls

31 lines (20 loc) · 1.05 KB
-api-id -api-type
M:Windows.ApplicationModel.DataTransfer.DataPackage.SetBitmap(Windows.Storage.Streams.RandomAccessStreamReference)
winrt method

Windows.ApplicationModel.DataTransfer.DataPackage.SetBitmap

-description

Sets the bitmap image contained in the DataPackage.

-parameters

-param value

A stream that contains the bitmap image.

-remarks

This method sets the value for StandardFormats.Bitmap.

Bitmap is one of the data types that the DataPackage object supports directly. See the StandardDataFormats class for information on other supported data types.

-examples

The following example uses the setBitmap method to share an image with a target app.

[!code-csharpHowToShareImage]

-see-also