BitmapEncoder.SetSoftwareBitmap(SoftwareBitmap) Méthode

Définition

Définit les données d’image du frame actuel à l’aide du SoftwareBitmap spécifié.

public:
 virtual void SetSoftwareBitmap(SoftwareBitmap ^ bitmap) = SetSoftwareBitmap;
void SetSoftwareBitmap(SoftwareBitmap const& bitmap);
public void SetSoftwareBitmap(SoftwareBitmap bitmap);
function setSoftwareBitmap(bitmap)
Public Sub SetSoftwareBitmap (bitmap As SoftwareBitmap)

Paramètres

bitmap
SoftwareBitmap

Bitmap logicielle contenant les données d’image.

Remarques

BitmapEncoder prend uniquement en charge les bitmaps logicielles qui ont un BitmapPixelFormat de Rgba16, Rgba8 ou Bgra8. Une tentative d’appel de SetSoftwareBitmap avec une bitmap logicielle dont le format de pixel est différent entraîne une erreur de format non prise en charge. Utilisez la méthode SoftwareBitmap.Convert pour créer une copie d’une bitmap logicielle existante avec un format de pixel différent.

S’applique à