share image (#1039)

This commit is contained in:
Pepe Rivera 2020-02-24 10:27:22 -08:00 committed by GitHub
parent 8483b68f12
commit dab258f3f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,6 +316,7 @@ void GraphingCalculator::OnDataRequested(DataTransferManager ^ sender, DataReque
auto bitmapStream = GraphingControl->GetGraphBitmapStream(); auto bitmapStream = GraphingControl->GetGraphBitmapStream();
requestData->ResourceMap->Insert(ref new String(L"graph.png"), bitmapStream); requestData->ResourceMap->Insert(ref new String(L"graph.png"), bitmapStream);
requestData->SetBitmap(bitmapStream);
// Set the thumbnail image (in case the share target can't handle HTML) // Set the thumbnail image (in case the share target can't handle HTML)
requestData->Properties->Thumbnail = bitmapStream; requestData->Properties->Thumbnail = bitmapStream;