LoadedImageSurface.StartLoadFromStream Méthode

Définition

Surcharges

StartLoadFromStream(IRandomAccessStream)

Charge une image sur un LoadedImageSurface à partir du IRandomAccessStream fourni à la taille naturelle définie dans la source d’image.

StartLoadFromStream(IRandomAccessStream, Size)

Charge une image dans un LoadedImageSurface à partir du IRandomAccessStream fourni avec la taille maximale souhaitée.

StartLoadFromStream(IRandomAccessStream)

Charge une image sur un LoadedImageSurface à partir du IRandomAccessStream fourni à la taille naturelle définie dans la source d’image.

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

Paramètres

stream
IRandomAccessStream

Flux à partir duquel l’image est chargée.

Retours

Une instance de LoadedImageSurface avec l’image chargée sur sa surface.

Attributs

S’applique à

StartLoadFromStream(IRandomAccessStream, Size)

Charge une image dans un LoadedImageSurface à partir du IRandomAccessStream fourni avec la taille maximale souhaitée.

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

Paramètres

stream
IRandomAccessStream

Flux à partir duquel l’image est chargée.

desiredMaxSize
Size

Taille maximale souhaitée de la surface d’image en pixels indépendants de l’appareil.

Retours

Une instance de LoadedImageSurface avec l’image chargée sur sa surface.

Attributs

Remarques

Par défaut, LoadedImageSurface remplira autant que possible la valeur souhaitéeMaxSize tout en préservant le rapport d’aspect et le contenu de l’image de la source entrante. Cela peut entraîner un décodage qui diffère de l’entrée souhaitéeMaxSize

S’applique à