PictureDecoder.DecodeJpeg Method (Stream, Int32, Int32)
Namespace: Microsoft.Phone
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
'Declaration
Public Shared Function DecodeJpeg ( _
source As Stream, _
maxPixelWidth As Integer, _
maxPixelHeight As Integer _
) As WriteableBitmap
public static WriteableBitmap DecodeJpeg(
Stream source,
int maxPixelWidth,
int maxPixelHeight
)
public:
static WriteableBitmap^ DecodeJpeg(
Stream^ source,
int maxPixelWidth,
int maxPixelHeight
)
static member DecodeJpeg :
source:Stream *
maxPixelWidth:int *
maxPixelHeight:int -> WriteableBitmap
Parameters
- source
Type: System.IO.Stream
- maxPixelWidth
Type: System.Int32
- maxPixelHeight
Type: System.Int32
Return Value
Type: System.Windows.Media.Imaging.WriteableBitmap
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.