LoadedImageSurface.StartLoadFromStream LoadedImageSurface.StartLoadFromStream LoadedImageSurface.StartLoadFromStream LoadedImageSurface.StartLoadFromStream Method

Definition

Overloads

StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream)

Loads an image onto a LoadedImageSurface from the provided IRandomAccessStream at the natural size defined in the image source.

StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size)

Loads an image into a LoadedImageSurface from the provided IRandomAccessStream with the desired maximum size.

StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream) StartLoadFromStream(IRandomAccessStream)

Loads an image onto a LoadedImageSurface from the provided IRandomAccessStream at the natural size defined in the image source.

public : static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream)
static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream) const;
public static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream)
Public Shared Function StartLoadFromStream(stream As IRandomAccessStream) As LoadedImageSurface
Parameters
stream
IRandomAccessStream IRandomAccessStream

The stream from which the image is loaded.

Returns

An instance of LoadedImageSurface with the image loaded onto its surface.

StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size) StartLoadFromStream(IRandomAccessStream, Size)

Loads an image into a LoadedImageSurface from the provided IRandomAccessStream with the desired maximum size.

public : static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream, Size desiredMaxSize)
static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream, Size desiredMaxSize) const;
public static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream, Size desiredMaxSize)
Public Shared Function StartLoadFromStream(stream As IRandomAccessStream, desiredMaxSize As Size) As LoadedImageSurface
Parameters
stream
IRandomAccessStream IRandomAccessStream

The stream from which the image is loaded.

desiredMaxSize
Size Size

The desired maximum size of the image surface in device independent pixels.

Returns

An instance of LoadedImageSurface with the image loaded onto its surface.

Remarks

By default, LoadedImageSurface will fill up as much of the desiredMaxSize as possible while preserving the aspect ratio and image content of the incoming source. This may result in a decodedsize that differs from the input desiredMaxSize