One Logo Pool Ball
CoreVideo · IOS API REFERENCE

CVImageSize

struct · iOS 26.0+ · SDK 27.1

struct CVImageSize

Size of image buffer expressed as pixel count. This should be used when the sizes must be specified as exact integer width & height. Otherwise, prefer ``CGSize`` as it is more widely used.

Members (7)

get · iOS 26.0+

zero

TypeScript
static get zero(): CVImageSize
Swift declaration
static let zero: CVImageSize

Size with zero width and height

init · iOS 26.0+

init

TypeScript
static initWidthHeight(width: number, height: number): CVImageSize
Swift declaration
init(width: Int, height: Int)

Create an instance with given width and height

get · iOS 26.0+

width

TypeScript
get width(): number
Swift declaration
var width: Int

Image width in pixels

set · iOS 26.0+

width

TypeScript
set width(value: number)
Swift declaration
var width: Int

Image width in pixels

get · iOS 26.0+

height

TypeScript
get height(): number
Swift declaration
var height: Int

Image height in pixels

set · iOS 26.0+

height

TypeScript
set height(value: number)
Swift declaration
var height: Int

Image height in pixels

init · iOS 26.0+

init

TypeScript
static initRounded(size: { width: number; height: number }, rule?: SDKHandle): CVImageSize
Swift declaration
init(_ size: CGSize, rounded rule: FloatingPointRoundingRule = .down)

Convert ``CGSize`` to ``CVImageSize`` using the given rounding rule. The same rounding rule is applied to both height and width.

Skipped declarations

No declarations were skipped in this snapshot.

All CoreVideo types →