<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVImageDisplayMaskRectangle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "s:9CoreVideo27CVImageDisplayMaskRectangleV"
  },
  "title" : "CVImageDisplayMaskRectangle"
}
-->

# CVImageDisplayMaskRectangle

Specifies the rectangular display area within the image.

```
struct CVImageDisplayMaskRectangle
```

## Overview

The mask is specified relative to a reference raster width and height that should be scaled to the
image buffer dimensions. The origin (0, 0) is at the top-left.

## Topics

### Initializers

[`init(left: UInt16, top: UInt16, width: UInt16, height: UInt16, referenceRasterWidth: UInt16, referenceRasterHeight: UInt16)`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/init(left:top:width:height:referenceRasterWidth:referenceRasterHeight:))

### Instance Properties

[`var height: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/height)

The height of the rectangle starting at rectangle’s top offset toward the rectangle’s bottom edge.

[`var left: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/left)

The horizontal pixel offset of the rectangle from the left of the bounding raster.

[`var referenceRasterHeight: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/referenceRasterHeight)

Specifies the height in pixels of the 2D coordinate system to define the rectangle.

[`var referenceRasterWidth: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/referenceRasterWidth)

The width in pixels of the 2D coordinate system to define the rectangle.

[`var top: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/top)

The vertical pixel offset of the rectangle from the top of the bounding raster.

[`var width: UInt16`](/documentation/CoreVideo/CVImageDisplayMaskRectangle/width)

The width of the rectangle starting at rectangle’s left offset toward the rectangle’s right edge.

## Relationships

### Conforms To

[`CVAttachmentValueRepresentable`](/documentation/CoreVideo/CVAttachmentValueRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)