Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Extensions Class

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Either encode a WriteableBitmap object into a JPEG stream, or decode a JPEG stream into a WriteableBitmap object.

System.Object
  System.Windows.Media.Imaging.Extensions

Namespace:  System.Windows.Media.Imaging
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static class Extensions

The Extensions type exposes the following members.

  NameDescription
Public methodStatic memberLoadJpegDecodes a JPEG stream into a WriteableBitmap object.
Public methodStatic memberSaveJpegEncodes a WriteableBitmap object into a JPEG stream, with parameters for setting the target width and height of the JPEG file.
Top

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show: