PictureDecoder.DecodeJpeg Method (Stream, Int32, Int32)
July 26, 2012
Decodes a JPEG file into a WriteableBitmap object, with parameters for setting the maximum height and width of the output.
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.