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

# CVImageSize

Size of image buffer expressed as pixel count.

```
struct CVImageSize
```

## Overview

This should be used when the sizes must be specified as exact integer width & height. Otherwise, prefer
`CGSize` as it is more widely used.

## Topics

### Initializers

[`init(CGSize, rounded: FloatingPointRoundingRule)`](/documentation/CoreVideo/CVImageSize/init(_:rounded:))

Convert `CGSize` to [`CVImageSize`](/documentation/CoreVideo/CVImageSize) using the given rounding rule.

[`init(width: Int, height: Int)`](/documentation/CoreVideo/CVImageSize/init(width:height:))

Create an instance with given width and height

### Instance Properties

[`var height: Int`](/documentation/CoreVideo/CVImageSize/height)

Image height in pixels

[`var width: Int`](/documentation/CoreVideo/CVImageSize/width)

Image width in pixels

### Type Properties

[`static let zero: CVImageSize`](/documentation/CoreVideo/CVImageSize/zero)

Size with zero width and height

## Relationships

### Conforms To

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

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

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

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

---

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)