<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Accelerate",
  "identifier" : "/documentation/Accelerate/vImage/Size",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Accelerate"
    ],
    "preciseIdentifier" : "s:10Accelerate6vImageO4SizeV"
  },
  "title" : "vImage.Size"
}
-->

# vImage.Size

A structure that contains width and height values.

```
struct Size
```

## Topics

### Initializers

[`init(cvPixelBuffer: CVPixelBuffer)`](/documentation/Accelerate/vImage/Size/init(cvPixelBuffer:))

Creates a size with dimensions specified by a Core Video pixel buffer.

[`init?<T>(exactWidth: T, height: T)`](/documentation/Accelerate/vImage/Size/init(exactWidth:height:)-9nwk0)

Creates a size with dimensions specified as floating-point values.

[`init?<T>(exactWidth: T, height: T)`](/documentation/Accelerate/vImage/Size/init(exactWidth:height:)-4ygbk)

Creates a size with dimensions specified as integer values.

[`init?(exactly: CGSize)`](/documentation/Accelerate/vImage/Size/init(exactly:))

Creates a size with dimensions specified as a Core Graphics size value.

[`init(width: Int, height: Int)`](/documentation/Accelerate/vImage/Size/init(width:height:)-fzcb)

Creates a size with dimensions specified as integer values.

[`init(width: vImagePixelCount, height: vImagePixelCount)`](/documentation/Accelerate/vImage/Size/init(width:height:)-8ly3k)

Creates a size with dimensions specified as unsigned integer values.

### Instance Properties

[`let height: Int`](/documentation/Accelerate/vImage/Size/height)

The height of the size structure.

[`let width: Int`](/documentation/Accelerate/vImage/Size/width)

The width of the size structure.

## Relationships

### Conforms To

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

---

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)