---
title: "presentationDimensions(usePixelAspectRatio:useCleanAperture:)"
framework: coremedia
role: symbol
role_heading: Instance Method
path: "coremedia/cmformatdescription/presentationdimensions(usepixelaspectratio:usecleanaperture:)"
---

# presentationDimensions(usePixelAspectRatio:useCleanAperture:)

Returns the dimensions to take the pixel aspect ratio or clean aperture into account.

## Declaration

```swift
func presentationDimensions(usePixelAspectRatio: Bool = true, useCleanAperture: Bool = true) -> CGSize
```

## Parameters

- `usePixelAspectRatio`: If true, the function computes the dimensions maintaining the pixel aspect ratio.
- `useCleanAperture`: If true, the function computes the dimensions using the clean aperture.

## See Also

### Working with Video Descriptions

- [cleanAperture(originIsAtTopLeft:)](coremedia/cmformatdescription/cleanaperture(originisattopleft:).md)
- [matchesImageBuffer(_:)](coremedia/cmformatdescription/matchesimagebuffer(_:).md)
