BitmapFrame Klasse

Definition

Ermöglicht Lesezugriff auf Daten innerhalb eines einzelnen Frames.

public ref class BitmapFrame sealed : IBitmapFrameWithSoftwareBitmap
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class BitmapFrame final : IBitmapFrameWithSoftwareBitmap
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class BitmapFrame : IBitmapFrameWithSoftwareBitmap
Public NotInheritable Class BitmapFrame
Implements IBitmapFrameWithSoftwareBitmap
Vererbung
Object Platform::Object IInspectable BitmapFrame
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Eigenschaften

BitmapAlphaMode

Der Standard-Alphamodus des Frames.

BitmapPixelFormat

Das Pixelformat, das am besten zum Frame passt.

BitmapProperties

Eine schreibgeschützte Ansicht der Metadaten innerhalb des Frames.

DpiX

Die horizontale Auflösung des Rahmens in Punkt pro Zoll.

DpiY

Die vertikale Auflösung des Rahmens in Punkt pro Zoll.

OrientedPixelHeight

Die Höhe des Frames in Pixel, nachdem eine EXIF-Ausrichtung auf die Bitmap angewendet wurde.

OrientedPixelWidth

Die Breite des Frames in Pixel, nachdem eine EXIF-Ausrichtung auf die Bitmap angewendet wurde.

PixelHeight

Die Höhe des Frames in Pixel.

PixelWidth

Die Breite des Frames in Pixel.

Methoden

GetPixelDataAsync()

Fordert asynchron die Pixeldaten für den Frame an. Das resultierende Pixeldatenarray verwendet das Bitmappixelformat und den Alphamodus, die in den Eigenschaften BitmapPixelFormat und BitmapAlphaMode angegeben sind. Außerdem werden Farbverwaltung und EXIF-Ausrichtung angewendet (weitere Informationen finden Sie im Abschnitt Hinweise).

GetPixelDataAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode)

Fordert die Pixeldaten für den Frame mithilfe der angegebenen Parameter asynchron an.

GetSoftwareBitmapAsync()

Ruft asynchron eine SoftwareBitmap-Darstellung des Bitmapframes ab.

GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode)

Ruft asynchron eine SoftwareBitmap-Darstellung des Bitmapframes ab.

GetSoftwareBitmapAsync(BitmapPixelFormat, BitmapAlphaMode, BitmapTransform, ExifOrientationMode, ColorManagementMode)

Ruft asynchron eine SoftwareBitmap-Darstellung des Bitmapframes ab.

GetThumbnailAsync()

Gibt asynchron einen Stream zurück, der das Miniaturbild enthält.

Gilt für: