MediaRatio 类

定义

表示媒体操作中使用的比率。

public ref class MediaRatio sealed
/// [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 MediaRatio final
[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 MediaRatio
Public NotInheritable Class MediaRatio
继承
Object Platform::Object IInspectable MediaRatio
属性

Windows 要求

设备系列
Windows 10 (在 10.0.10240.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)

注解

此对象不会直接实例化,它由 VideoEncodingProperties.FrameRateVideoEncodingProperties.PixelAspectRatio 属性返回。

属性

Denominator

MediaRatio 的分母。

Numerator

MediaRatio 的分子。

适用于