Share via


LoadedImageSurface.StartLoadFromStream 方法

定义

重载

StartLoadFromStream(IRandomAccessStream)

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

StartLoadFromStream(IRandomAccessStream, Size)

将图像从提供的 IRandomAccessStream 中加载到具有所需最大大小的 LoadedImageSurface 中。

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)

将图像从提供的 IRandomAccessStream 中加载到具有所需最大大小的 LoadedImageSurface 中。

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 将填满尽可能多的 所需 MaxSize ,同时保留传入源的纵横比和图像内容。 这可能会导致解码大小不同于输入 desiredMaxSize

适用于