Function

vImageBuffer_GetSize(_:)

Returns the size, in pixels, of a vImage buffer.

Declaration

func vImageBuffer_GetSize(_ buf: UnsafePointer<vImage_Buffer>) -> CGSize

Parameters

buf

The vImage buffer to query.

Return Value

The size of the buffer.

Discussion

The buffer's width and height are defined as vImagePixelCount values that could be larger than greatestFiniteMagnitude. The returned CGSize width and height are rounded down to the nearest representable CGFloat values that are less than or equal to the size of the buffer.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software