Partage via


SoftwareBitmap.CreateCopyFromBuffer Méthode

Définition

Surcharges

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)

Crée un nouveau SoftwareBitmap en effectuant une copie approfondie de la mémoire tampon fournie. Les modifications apportées aux données dans le nouveau SoftwareBitmap n’ont pas d’effet sur la mémoire tampon à partir de laquelle elles ont été créées.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Crée un nouveau SoftwareBitmap en effectuant une copie approfondie de la mémoire tampon fournie. Les modifications apportées aux données dans le nouveau SoftwareBitmap n’ont pas d’effet sur la mémoire tampon à partir de laquelle elles ont été créées.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)

Crée un nouveau SoftwareBitmap en effectuant une copie approfondie de la mémoire tampon fournie. Les modifications apportées aux données dans le nouveau SoftwareBitmap n’ont pas d’effet sur la mémoire tampon à partir de laquelle elles ont été créées.

public:
 static SoftwareBitmap ^ CreateCopyFromBuffer(IBuffer ^ source, BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
/// [Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromBuffer")]
 static SoftwareBitmap CreateCopyFromBuffer(IBuffer const& source, BitmapPixelFormat const& format, int const& width, int const& height, BitmapAlphaMode const& alpha);
[Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromBuffer")]
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
function createCopyFromBuffer(source, format, width, height, alpha)
Public Shared Function CreateCopyFromBuffer (source As IBuffer, format As BitmapPixelFormat, width As Integer, height As Integer, alpha As BitmapAlphaMode) As SoftwareBitmap

Paramètres

source
IBuffer

Mémoire tampon source à partir de laquelle la copie sera créée.

format
BitmapPixelFormat

Format de pixels de l’image bitmap logicielle.

width
Int32

int

Largeur de l’image bitmap logicielle, en pixels.

height
Int32

int

Hauteur de l’image bitmap logicielle, en pixels.

alpha
BitmapAlphaMode

Mode alpha de l’image bitmap logicielle.

Retours

Nouvelle bitmap logicielle.

Attributs

Voir aussi

S’applique à

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Crée un nouveau SoftwareBitmap en effectuant une copie approfondie de la mémoire tampon fournie. Les modifications apportées aux données dans le nouveau SoftwareBitmap n’ont pas d’effet sur la mémoire tampon à partir de laquelle elles ont été créées.

public:
 static SoftwareBitmap ^ CreateCopyFromBuffer(IBuffer ^ source, BitmapPixelFormat format, int width, int height);
/// [Windows.Foundation.Metadata.Overload("CreateCopyFromBuffer")]
 static SoftwareBitmap CreateCopyFromBuffer(IBuffer const& source, BitmapPixelFormat const& format, int const& width, int const& height);
[Windows.Foundation.Metadata.Overload("CreateCopyFromBuffer")]
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int width, int height);
function createCopyFromBuffer(source, format, width, height)
Public Shared Function CreateCopyFromBuffer (source As IBuffer, format As BitmapPixelFormat, width As Integer, height As Integer) As SoftwareBitmap

Paramètres

source
IBuffer

Mémoire tampon source à partir de laquelle la copie sera créée.

format
BitmapPixelFormat

Format de pixels de l’image bitmap logicielle.

width
Int32

int

Largeur de l’image bitmap logicielle, en pixels.

height
Int32

int

Hauteur de l’image bitmap logicielle, en pixels.

Retours

Nouvelle bitmap logicielle.

Attributs

Remarques

Utilisez cette méthode et ses surcharges pour copier des données du PixelBuffer d’un WriteableBitmap dans un SoftwareBitmap existant.

Voir aussi

S’applique à