-api-id | -api-type |
---|---|
M:Windows.ApplicationModel.DataTransfer.DataPackage.SetBitmap(Windows.Storage.Streams.RandomAccessStreamReference) |
winrt method |
Sets the bitmap image contained in the DataPackage.
A stream that contains the bitmap image.
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.
The following example uses the setBitmap method to share an image with a target app.
[!code-csharpHowToShareImage]