Share via


ImageEncodingProperties Klasse

Definition

Beschreibt das Format eines Bildstreams.

public ref class ImageEncodingProperties sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ImageEncodingProperties final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class ImageEncodingProperties final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ImageEncodingProperties
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class ImageEncodingProperties
function ImageEncodingProperties()
Public NotInheritable Class ImageEncodingProperties
Vererbung
Object Platform::Object IInspectable ImageEncodingProperties
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)

Hinweise

Anleitungen zur Verwendung von ImageEncodingProperties zum Festlegen der Codierungseigenschaften für aufgenommene Bilder finden Sie unter Grundlegende Foto-, Video- und Audioaufnahme mit MediaCapture.

Versionsverlauf

Windows-Version SDK-Version Mehrwert
1803 17134 Kopieren
1809 17763 CreateHeif

Konstruktoren

ImageEncodingProperties()

Erstellt eine neue instance der ImageEncodingProperties-Klasse.

Eigenschaften

Height

Ruft die Bildhöhe ab oder legt sie fest.

Properties

Ruft zusätzliche Formateigenschaften für den Bildstream ab.

Subtype

Ruft den Untertyp des Formats ab oder legt den Untertyp des Formats fest.

Type

Ruft den Formattyp ab.

Width

Ruft die Bildbreite ab oder legt sie fest.

Methoden

Copy()

Erstellt eine Kopie des ImageEncodingProperties-Objekts .

CreateBmp()

Erstellt eine instance von ImageEncodingProperties für ein BMP-Image.

CreateHeif()

Erstellt eine instance imageEncodingProperties für das HEIF-Format.

CreateJpeg()

Erstellt eine instance von ImageEncodingProperties für ein JPEG-Bild.

CreateJpegXR()

Erstellt eine instance von ImageEncodingProperties für ein JPEG XR-Bild.

CreatePng()

Erstellt eine instance von ImageEncodingProperties für ein PNG-Bild.

CreateUncompressed(MediaPixelFormat)

Erstellt eine instance von ImageEncodingProperties für ein unkomprimiertes Bild.

Gilt für:

Weitere Informationen