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 不同

適用於