Contents

init(size:bitsPerPixel:)

Creates a new buffer with the specified size and bits per pixel.

Declaration

init(size: CGSize, bitsPerPixel: UInt32) throws

Parameters

  • size:

    The size of the buffer, in pixels.

  • bitsPerPixel:

    The number of bits in a single pixel.

Discussion

This function allocates a buffer’s memory, but doesn’t initialize the memory.

See Also

Creating an empty vImage buffer