LoadedImageSurface.StartLoadFromStream 方法

定义

重载

StartLoadFromStream(IRandomAccessStream)

从提供的 IRandomAccessStream 中定义的自然大小将图像加载到 LoadedImageSurface

StartLoadFromStream(IRandomAccessStream, Size)

将图像加载到 LoadedImageSurface,该 IRandomAccessStream 具有所需最大大小。

StartLoadFromStream(IRandomAccessStream)

从提供的 IRandomAccessStream 中定义的自然大小将图像加载到 LoadedImageSurface

public:
 static LoadedImageSurface ^ StartLoadFromStream(IRandomAccessStream ^ stream);
/// [Windows.Foundation.Metadata.Overload("StartLoadFromStream")]
 static LoadedImageSurface StartLoadFromStream(IRandomAccessStream const& stream);
[Windows.Foundation.Metadata.Overload("StartLoadFromStream")]
public static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream);
function startLoadFromStream(stream)
Public Shared Function StartLoadFromStream (stream As IRandomAccessStream) As LoadedImageSurface

参数

stream
IRandomAccessStream

从中加载图像的流。

返回

LoadedImageSurface 实例,图像加载到其图面上。

属性

适用于

StartLoadFromStream(IRandomAccessStream, Size)

将图像加载到 LoadedImageSurface,该 IRandomAccessStream 具有所需最大大小。

public:
 static LoadedImageSurface ^ StartLoadFromStream(IRandomAccessStream ^ stream, Size desiredMaxSize);
/// [Windows.Foundation.Metadata.Overload("StartLoadFromStreamWithSize")]
 static LoadedImageSurface StartLoadFromStream(IRandomAccessStream const& stream, Size const& desiredMaxSize);
[Windows.Foundation.Metadata.Overload("StartLoadFromStreamWithSize")]
public static LoadedImageSurface StartLoadFromStream(IRandomAccessStream stream, Size desiredMaxSize);
function startLoadFromStream(stream, desiredMaxSize)
Public Shared Function StartLoadFromStream (stream As IRandomAccessStream, desiredMaxSize As Size) As LoadedImageSurface

参数

stream
IRandomAccessStream

从中加载图像的流。

desiredMaxSize
Size

设备独立像素中图像图面的所需最大大小。

返回

LoadedImageSurface 实例,图像加载到其图面上。

属性

注解

默认情况下,LoadedImageSurface 将尽可能多地填充 desiredMaxSize,同时保留传入源的纵横比和图像内容。 这可能会导致解码大小与所需的输入 desiredMaxSize

适用于