init(size:bitsPerPixel:)
Creates a new buffer with the specified size and bits per pixel.
Declaration
init(size: CGSize, bitsPerPixel: UInt32) throwsParameters
- 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.