Initializer

init(data:height:width:rowBytes:)

Returns a new, empty buffer of the specified size.

Declaration

init(data: UnsafeMutableRawPointer!, height: vImagePixelCount, width: vImagePixelCount, rowBytes: Int)

Parameters

data

A pointer to the top left pixel of the buffer.

height

The height of the buffer, in pixels.

width

The width of the buffer, in pixels.

rowBytes

The number of bytes in a pixel row.