init(width:height:bitsPerPixel:)
Creates a new buffer with the specified width, height, and bits per pixel.
Declaration
init(width: Int, height: Int, bitsPerPixel: UInt32) throwsParameters
- width:
The width of the buffer, in pixels.
- height:
The height of the buffer, in pixels.
- bitsPerPixel:
The number of bits in a single pixel.
Mentioned in
Discussion
This function allocates a buffer’s memory, but doesn’t initialize the memory.