-api-id | -api-type |
---|---|
M:Windows.System.UserProfile.LockScreen.GetImageStream |
winrt method |
Gets the current lock screen image as a data stream.
The stream that contains the lock screen image data.
This method can be called only by apps that have set the "Picture Library Access" capability in the package manifest or by the app that set this image on the lock screen.
The following example demonstrates this method being used to retrieve the current lock screen image. For a full sample, see the Lock screen personalization sample (Windows 10).
IRandomAccessStream imageStream = LockScreen.GetImageStream();
Windows::Storage::Streams::IRandomAccessStream imageStream{
Windows::System::UserProfile::LockScreen::GetImageStream()
};
auto imageStream = Windows::System::UserProfile::LockScreen::GetImageStream();
LockScreen.originalImageFile, LockScreen.setImageFileAsync, LockScreen.setImageStreamAsync, Lock screen overview