> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# PixelAspectRatio

Class · [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)

The pixel aspect ratio (PAR) of the video.

Use the predefined constants for standard ratios, or {@link PixelAspectRatio.of} for
a custom ratio.

Obtainable from: PixelAspectRatio.SQUARE, PixelAspectRatio.of

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/shared.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/shared.ts#L100)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as medialive_alpha from '@aws-cdk/aws-medialive-alpha';
const pixelAspectRatio = medialive_alpha.PixelAspectRatio.of(123, 123);
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_medialive_alpha as medialive_alpha

pixel_aspect_ratio = medialive_alpha.PixelAspectRatio.of(123, 123)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.medialive.alpha.*;

PixelAspectRatio pixelAspectRatio = PixelAspectRatio.of(123, 123);
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaLive.Alpha;

var pixelAspectRatio = PixelAspectRatio.Of(123, 123);
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import medialive_alpha "github.com/aws/aws-cdk-go/awsmedialivealpha"

pixelAspectRatio := medialive_alpha.PixelAspectRatio_Of(jsii.Number(123), jsii.Number(123))
```

## Properties

- `SQUARE`: [PixelAspectRatio](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.PixelAspectRatio.html) (static) — Square pixels (`1:1`).

## Methods

- `of(numerator: number, denominator: number): PixelAspectRatio // chainable` (static) — Define a pixel aspect ratio.

  **Parameters**

  - `numerator` — Numerator of the ratio.
  - `denominator` — Denominator of the ratio.

- `toString(): string` — Returns the string value in `numerator:denominator` form.
