One Logo Pool Ball
Accelerate · IOS API REFERENCE

vImage.Size

struct · iOS 16.0+ · SDK 27.1

struct Size

A structure that represents the size of a pixel buffer or kernel.

Members (8)

init · iOS 16.0+

init

TypeScript
static initExactWidthHeight(exactWidth: number, height: number): (vImage_Size) | null
Swift declaration
init?<T>(exactWidth: T, height: T) where T : BinaryFloatingPoint

Creates a size with dimensions specified as `BinaryFloatingPoint`values. - Parameter width: The width. - Parameter height: The height. - Precondition: `width` and `height` must be greater than `0` and exactly representable as `Int`.

init · iOS 16.0+

init

TypeScript
static initExactWidthHeight62319(exactWidth: number, height: number): (vImage_Size) | null
Swift declaration
init?<T>(exactWidth: T, height: T) where T : BinaryInteger

Creates a size with dimensions specified as `BinaryInteger`values. - Parameter width: The width. - Parameter height: The height. - Precondition: `width` and `height` must be greater than `0` and exactly representable as `Int`.

init · iOS 16.0+

init

TypeScript
static initCvPixelBuffer(cvPixelBuffer: _CoreVideo_CVBuffer): vImage_Size
Swift declaration
init(cvPixelBuffer: CVPixelBuffer)

Creates a size with dimensions derived from a `CVPixelBuffer`. - Parameter cvPixelBuffer: The `CVPixelBuffer` that provides the size.

init · iOS 16.0+

init

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

Creates a size with dimensions specified as integer values. - Parameter width: The width. - Parameter height: The height. - Precondition: `width` and `height` must be greater than `0`.

init · iOS 16.0+

init

TypeScript
static initWidthHeight83260(width: number, height: number): vImage_Size
Swift declaration
init(width: vImagePixelCount, height: vImagePixelCount)

Creates a size with dimensions specified as unsigned integer values. - Parameter width: The width. - Parameter height: The height.

get · iOS 16.0+

width

TypeScript
get width(): number
Swift declaration
let width: Int
get · iOS 16.0+

height

TypeScript
get height(): number
Swift declaration
let height: Int
init · iOS 16.0+

init

TypeScript
static initExactly(size: { width: number; height: number }): (vImage_Size) | null
Swift declaration
init?(exactly size: CGSize)

Creates a size with dimensions specified as a `CGSize` structure. - Parameter size: The size. - Parameter height: The height. - Precondition: The size dimensions must be exacly representable as `Int` types that are greater than `0`.

Skipped declarations

No declarations were skipped in this snapshot.

All Accelerate types →