init(pixelValues:size:pixelFormat:)
Creates a new pixel buffer by copying the supplied collection of pixel values.
Declaration
init<U>(pixelValues: U, size: vImage.Size, pixelFormat: Format.Type = Format.self) where U : AccelerateBuffer, Format.ComponentType == U.ElementParameters
- pixelValues:
The source pixel values.
pixelValuesmust containsize.width * size.height * channelCountelements. - size:
The size of the new buffer.
- pixelFormat:
The pixel format of the initialized buffer.