---
title: "init(_:rounded:)"
framework: corevideo
role: symbol
role_heading: Initializer
path: "corevideo/cvimagesize/init(_:rounded:)"
---

# init(_:rounded:)

Convert CGSize to CVImageSize using the given rounding rule.

## Declaration

```swift
init(_ size: CGSize, rounded rule: FloatingPointRoundingRule = .down)
```

## Discussion

Discussion The same rounding rule is applied to both height and width.
