LoadedImageSurface.StartLoadFromStream 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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