Windows Dev Center

LockScreen.GetImageStream | getImageStream method

Gets the current lock screen image as a data stream.

Syntax


public static IRandomAccessStream GetImageStream()

Parameters

This method has no parameters.

Return value

Type: IRandomAccessStream

The stream that contains the lock screen image data.

Remarks

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.

Examples

The following example demonstrates this method being used to retrieve the current lock screen image. For a full sample, see the Personalization app sample.



IRandomAccessStream imageStream = LockScreen.GetImageStream();

Requirements (device family)

Device family

Desktop

API contract

Windows.System.UserProfile.UserProfileContract, introduced version 1.0

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.System.UserProfile.UserProfileContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.winmd

See also

LockScreen
LockScreen.originalImageFile
LockScreen.setImageFileAsync
LockScreen.setImageStreamAsync
Lock screen overview

 

 

Show:
© 2015 Microsoft