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.

PictureDecoder.DecodeJpeg Method (Stream, Int32, Int32)

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

Decodes a JPEG file into a WriteableBitmap object, with parameters for setting the maximum height and width of the output.

Namespace:  Microsoft.Phone
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static WriteableBitmap DecodeJpeg(
	Stream source,
	int maxPixelWidth,
	int maxPixelHeight
)

Parameters

source
Type: System.IO.Stream
The image data stream.
maxPixelWidth
Type: System.Int32
The maximum width of the output.
maxPixelHeight
Type: System.Int32
The maximum height of the output.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show: