Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Decodes a JPEG stream into a WriteableBitmap object.
Namespace: System.Windows.Media.Imaging
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
<ExtensionAttribute> _
Public Shared Sub LoadJpeg ( _
bitmap As WriteableBitmap, _
sourceStream As Stream _
)
public static void LoadJpeg(
this WriteableBitmap bitmap,
Stream sourceStream
)
Parameters
- bitmap
Type: System.Windows.Media.Imaging..::.WriteableBitmap
The WriteableBitmap object.
- sourceStream
Type: System.IO..::.Stream
The image data stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type WriteableBitmap. When you use instance method syntax to call this method, omit the first parameter.
Remarks
Note
The position of sourceStream cannot be used to determine the size of the encoded data. Further use of sourceStream can have unpredictable results if the position of the stream is not explicitly set.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0
Platforms
Windows Phone